Closed xylix closed 4 years ago
This library has no non-std dependencies and would solve the detection of a dark/light theme on macOS, could solve the issue nicely https://github.com/albertosottile/darkdetect
Trayicon.py does already import subprocess so a CLI command solution could be applied with no extra imports. But darkdetect leaves the codebase much cleaner and doesn't add unnecessary logic, so it's probably the nicer solution. I'll push a commit in a second.
Should the white-monochrome-logo be used on other platforms too or do you think the normal activitywatch logo looks better in Linux / Windows system tray?
Should the white-monochrome-logo be used on other platforms too or do you think the normal activitywatch logo looks better in Linux / Windows system tray?
Since we have no idea what kind of theme the user has on the other platforms the safe option would be to use the non-monochrome icon as that doesn't have any transparency.
I had some problems getting pyinstaller to package darkdetect
so I ended up using a Foundation snippet since trayicon.py already imports objc stuff on MacOS anyway. It's quite readable.
New icon on dark theme
Old icon on dark theme
Fixes https://github.com/ActivityWatch/activitywatch/issues/295 Requires https://github.com/ActivityWatch/media/pull/1