albertosottile / darkdetect

Detect OS Dark Mode from Python
Other
171 stars 18 forks source link

Supports Windows 10 Dark Mode detection (>=1607) #4

Closed cboy343 closed 3 years ago

cboy343 commented 4 years ago

This uses a Windows Registry entry to check if the user is using dark mode in Windows 10. This check only happens if the user is running Windows 10 version 1607 (build 10.0.14393) or higher as that is when dark mode was introduced to Windows 10. This code was tested on Windows 10 version 1909 and macOS Mojave 10.14 (to check that I didn't break anything).

albertosottile commented 3 years ago

LGTM, sorry If I neglected this for so long. Thanks for this contribution!