Fix monochrome tray icon on macOS

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2024-04-29 08:09:08 +08:00
parent 007a870d0a
commit 2843c714b7
+6
View File
@@ -111,6 +111,12 @@ class SystemTrayIcon(
super().showMessage(_(APPLICATION_NAME), message, *args, **kwargs)
def setMonochromeIconByTheme(self, theme):
if PLATFORM == 'Darwin':
# macOS. Always use white icon
self.setIcon(bootstrapIconWhite('monochrome-rocket-takeoff.svg'))
return
if theme == 'Dark':
self.setIcon(bootstrapIconWhite('monochrome-rocket-takeoff.svg'))
else: