From 24cabcbee93a091f1af94eee941cd8ce38aed9d3 Mon Sep 17 00:00:00 2001 From: Maran Date: Sun, 10 Nov 2013 18:11:26 +0100 Subject: [PATCH] Switch icon based on OS, OS X requires dark icon --- gui/qt/main_window.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 57f8307a..03f77b9e 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -138,8 +138,13 @@ class ElectrumWindow(QMainWindow): self._close_electrum = False self.lite = None - - self.icon = QIcon(':icons/electrum_light_icon.png') + + if sys.platform == 'darwin': + self.icon = QIcon(":icons/electrum_dark_icon.png") + #self.icon = QIcon(":icons/lock.png") + else: + self.icon = QIcon(':icons/electrum_light_icon.png') + self.tray = QSystemTrayIcon(self.icon, self) self.tray.setToolTip('Electrum') self.tray.activated.connect(self.tray_activated)