You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Electron app doesn't support High Contrast mode #7469
Activity
kevinsawicki commentedon Oct 3, 2016
If you use Chrome, do you see the same behavior?
nishant09 commentedon Oct 3, 2016
Yes it's a same behavior.
kevinsawicki commentedon Oct 3, 2016
You can probably expect Electron to be the same then. Do you know of any browsers or browser-based apps that support the behavior you are looking for?
nishant09 commentedon Oct 3, 2016
Microsoft Edge .. It works perfectly fine with High Contrast mode
kevinsawicki commentedon Oct 3, 2016
What about on macOS and Linux?
nishant09 commentedon Oct 3, 2016
Electron doesn't support High contrast on them as well
nishant09 commentedon Oct 3, 2016
So it looks like not even the latest version of Electron supports High Contrast mode, correct ?
Are you guys planning to fix this issue ?
kevinsawicki commentedon Oct 6, 2016
Which part of your app isn't reacting?
When I use
High Contrast #1theme on Windows 10, I do see the window frame and menus react:All the other content on your page won't restyle unless you deliberately restyle it yourself since you control your app's styles.
You could explore using/including this extension with your app to provide this functionality: https://chrome.google.com/webstore/detail/high-contrast/djcfdncoelnlbldjfhinnjlhdjlikmph
kevinsawicki commentedon Oct 6, 2016
I've opened a pull request to add an Electron API to check if high contrast mode is enabled in #7518
nishant09 commentedon Oct 6, 2016
I do see the exact same behavior. I wasn't aware that the other content of my app won't restyle unless I style them with CSS.
I'm thinking of enabling high contrast from the menu. not depending on windows high contrast mode.
MarshallOfSound commentedon Oct 6, 2016
@nishant09 There is a sneaky trick you can do to get a "high contrast mode" working in CSS.
nishant09 commentedon Oct 6, 2016
@MarshallOfSound Thank you amigo. this will help