High contrast theme is not getting applied
See original GitHub issueWe want to add the possibility to use the Default Windows Theme in the Apps generated by Windows Template Studio and support High contrast.
Adding the sync option was quite straight forward, but we’re having trouble implementing High Contrast support. You can find a repro project at https://github.com/sibille/WTS.WPF.HighContrastSupport. Are we missing something?
Problems we are facing:
-
When selecting “Windows default”, I can see a the following theme getting applied in the OnThemeChanged event
{DisplayName=Runtime #C400B7C3 (Light) HighContrast, Name=Light.Runtime_#C400B7C3, IsHighContrast=True, IsRuntimeGenerated=True}
but no colors do seem to change. -
When selecting Dark or Light the OnThemeChanged event does not get fired.
Other questions:
- Do we need to add a custom high contrast theme for Dark/Light High Contrast support ?
- Do we need to explicitly set the high contrast theme using
ThemeManager.Current.ChangeTheme
?
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
High contrast problem, Windows 10
Turn Off High Contrast Settings and right click on the desktop. · Select Personalize and under 'Apply a theme' choose default Windows theme....
Read more >How to Fix the Inability to Turn Off High Contrast Mode on ...
1. Restart the System and Sign In as an Administrator · 2. Change the Themes From the Settings App · 3. Perform a...
Read more >My struggle to set a high contrast theme
One of the first things I always do for a new OS or a new build is to set a nice high contrast...
Read more >Some settings aren't available in High Contrast mode
If you are unable to turn off High Contrast Mode or if Windows 11/10 get stuck on High Contrast Mode, change your theme...
Read more >Styling for Windows high contrast with new standards for ...
High contrast on Windows is an accessibility feature designed to increase text legibility and improve readability. The feature works by enabling ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@sibille That’s a bug in ControlzEx. Will have a look and fix it. I forgot some cases inside SyncTheme when i added high contrast support.
Thank you both!