albertosottile / darkdetect

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

add XFCE support #38

Closed maharvey closed 8 months ago

maharvey commented 8 months ago

XFCE does not use gsettings and was always returning 'Light'.

Added a desktop detection function, and added XFCE support to theme() and listener().

Since 'Light' was confusing for non-GTK desktops, an 'Unknown' theme type is added so that application knows detection was unsuccessful and can choose an appropriate response.

Added a 'watch' option to main to demonstrate the listener.