Try to get the WindowBaseColor in HighContrast mode#132
Conversation
Use the GetBrightness to decide between dark and light.
|
I am not sure if we should do it this way.
Windows itself has different high contrast themes doesn't it? The settings app exposes 4 different high contrast themes on my machine. |
We could, and maybe really should, check if we find a theme that has high contrast and the accent color and if we don't find any just choose a high contrast theme without the accent color. But we'd need some way to express this option. Not sure where and how we should add that. |
Describe the changes you have made to improve this project
Unit test
Additional context
Reason for the PR comes from MahApps: High contrast theme is not getting applied #3880
Idea
In order to fix another issue with HighContrast mode we should first search for an existing theme without an accent color. Because normally there is only one HighContrast theme (like in UWP).
So an app with custom themes should only have two themes, one for light and one for dark if no other will be found.