Simplify implementation of dark theme

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: 26
    • Component/s: tools
    • None
    • b24
    • generic
    • generic

      The dark theme added in JDK-8342705 uses duplicate CSS declarations to handle OS default settings. As it turns out, this can be avoided by using the window.matchMedia() function[1] to query the OS defaults to set the theme.

      [1]: https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia

            Assignee:
            Hannes Wallnoefer
            Reporter:
            Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: