albertosottile / darkdetect

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

Two Windows 'Dark' modes: `AppsUseLightTheme` and `SystemUsesLightTheme` #42

Open JamiePoole opened 2 months ago

JamiePoole commented 2 months ago

Heya, I'm looking to use this module for a system tray app, however, the darkdetect is returning Light even when the taskbar is in 'dark' mode.

It seems my apps are in light mode, just the taskbar is dark, but for a system tray icon, that's all I am after.

There is an identical registry key at the same location: SystemUsesLightTheme which accurately reflects the taskbar dark mode, however darkdetect is only using AppsUseLightTheme in it's check/response.

Can we get it to support both on Windows?