question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

High contrast theme is not getting applied

See original GitHub issue

We 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:

  1. 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.

  2. 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:closed
  • Created 3 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
batzencommented, Sep 18, 2020

@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.

0reactions
sibillecommented, Nov 3, 2020

Thank you both!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found