From 2843c714b751ec4198422bfb4b79a182ef652f17 Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Mon, 29 Apr 2024 08:09:08 +0800 Subject: [PATCH] Fix monochrome tray icon on macOS Signed-off-by: Loren Eteval --- Furious/Widget/SystemTrayIcon.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Furious/Widget/SystemTrayIcon.py b/Furious/Widget/SystemTrayIcon.py index 22bf936..f082110 100644 --- a/Furious/Widget/SystemTrayIcon.py +++ b/Furious/Widget/SystemTrayIcon.py @@ -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: