Skip to content

Electron app doesn't support High Contrast mode #7469

Closed

Description

@nishant09

Electron version: 0.34
Operating system: windows, mac osx and linux

I noticed when I turn on the High Contrast mode, my electron app doesn't react accordingly. Has it been the issue in the older version ?

We are going to adopt the 1.3.3 version soon. Has this issue been resolved in the newer version?

Is there any app out in the market(you're aware of) which is using the latest version of electron. I would like to do some accessibility testing.

Thanks !

Activity

  1. kevinsawicki commented on Oct 3, 2016

    @kevinsawicki
    Contributor

    I noticed when I turn on the High Contrast mode, my electron app doesn't react accordingly.

    If you use Chrome, do you see the same behavior?

  2. added
    blocked/need-info ❌
    on Oct 3, 2016
  3. nishant09 commented on Oct 3, 2016

    @nishant09
    Author

    Yes it's a same behavior.

  4. kevinsawicki commented on Oct 3, 2016

    @kevinsawicki
    Contributor

    Yes it's a same behavior.

    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?

  5. nishant09 commented on Oct 3, 2016

    @nishant09
    Author

    Microsoft Edge .. It works perfectly fine with High Contrast mode

  6. kevinsawicki commented on Oct 3, 2016

    @kevinsawicki
    Contributor

    Microsoft Edge .. It works perfectly fine with High Contrast mode

    What about on macOS and Linux?

  7. nishant09 commented on Oct 3, 2016

    @nishant09
    Author

    Electron doesn't support High contrast on them as well

  8. nishant09 commented on Oct 3, 2016

    @nishant09
    Author

    So it looks like not even the latest version of Electron supports High Contrast mode, correct ?

    Are you guys planning to fix this issue ?

  9. kevinsawicki commented on Oct 6, 2016

    @kevinsawicki
    Contributor

    I noticed when I turn on the High Contrast mode, my electron app doesn't react accordingly.

    Which part of your app isn't reacting?

    When I use High Contrast #1 theme on Windows 10, I do see the window frame and menus react:

    screen shot 2016-10-06 at 2 58 15 pm

    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

  10. kevinsawicki commented on Oct 6, 2016

    @kevinsawicki
    Contributor

    I've opened a pull request to add an Electron API to check if high contrast mode is enabled in #7518

  11. nishant09 commented on Oct 6, 2016

    @nishant09
    Author

    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.

  12. MarshallOfSound commented on Oct 6, 2016

    @MarshallOfSound
    Member

    @nishant09 There is a sneaky trick you can do to get a "high contrast mode" working in CSS.

    html {
      -webkit-filter: invert(1);
    }
  13. nishant09 commented on Oct 6, 2016

    @nishant09
    Author

    @MarshallOfSound Thank you amigo. this will help

  14. added and removed
    blocked/need-info ❌
    on Oct 7, 2016
  15. self-assigned this
    on Oct 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions