Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8370612

Simplify implementation of dark theme

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • 26
    • tools
    • None

      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

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: