electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 24cabcbee93a091f1af94eee941cd8ce38aed9d3
parent eae0c7c3b94680906713b89eecd9b3700265ad7c
Author: Maran <maran.hidskes@gmail.com>
Date:   Sun, 10 Nov 2013 18:11:26 +0100

Switch icon based on OS, OS X requires dark icon

Diffstat:
Mgui/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 @@ -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)