Closed midrare closed 3 years ago
Apparently Windows 10 has dark mode too. I wrote this if you would consider extending darkdetect functionality to Windows.
darkdetect
import platform if platform.system() == 'Windows': import winreg def is_windows_using_dark_theme(): value = 1 # default to light theme try: with winreg.OpenKey(winreg.HKEY_CURRENT_USER, 'Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize') as key: value, value_type = winreg.QueryValueEx(key, 'AppsUseLightTheme') except OSError as e: pass return value > 0
I've tried this and it works perfectly.
Closed in #4. To be released soon in 0.2.
Apparently Windows 10 has dark mode too. I wrote this if you would consider extending
darkdetect
functionality to Windows.