Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion aw_qt/resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
<qresource>
<file alias="logo.png">../media/logo/logo.png</file>
<file alias="black-monochrome-logo.png">../media/logo/black-monochrome-logo.png</file>
<file alias="white-monochrome-logo.png">../media/logo/white-monochrome-logo.png</file>
</qresource>
</RCC>
9 changes: 3 additions & 6 deletions aw_qt/trayicon.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,9 @@ def run(manager, testing=False):

widget = QWidget()
if sys.platform == "darwin":
from Foundation import NSUserDefaults
style = NSUserDefaults.standardUserDefaults().stringForKey_('AppleInterfaceStyle')
if style == "Dark":
icon = QIcon(":/white-monochrome-logo.png")
else:
icon = QIcon(":/black-monochrome-logo.png")
icon = QIcon(":/black-monochrome-logo.png")
# Allow macOS to use filters for changing the icon's color
icon.setIsMask(True)
else:
icon = QIcon(":/logo.png")

Expand Down
2 changes: 1 addition & 1 deletion media