pento / testpress

Tool for helping you get a WordPress Core test environment up and running.
GNU General Public License v2.0
68 stars 2 forks source link

Dark Mode support in Windows #136

Open pento opened 5 years ago

pento commented 5 years ago

Electron doesn't support Dark Mode in Windows, but we can manually check the registry for the setting.

Following Firefox's implementation, the setting is stored in the SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize\AppsUseLightTheme key. It's only available on Windows 10.

There are various NPM modules for reading Windows registry values, unfortunately, none of them appear to implement watching, so we won't know when the value changes.

I suspect the best option might be to see if VSCode folks are interested in that feature being added to their module. If not, we can fork it and add it ourselves.