diff options
author | Kali Kaneko <kali@leap.se> | 2018-01-23 00:20:58 +0100 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2018-01-25 01:19:19 +0100 |
commit | bfd941fa8f7938698a5c5693d601c098250284e5 (patch) | |
tree | 9cf35ac9211662a269a71ddb00ce20b9f32e9d22 /src/leap/bitmask/gui/systray.py | |
parent | 7e05218519b1306a838a3fccfe342b8260af5b75 (diff) |
[feat] use new assets for systray icons
Diffstat (limited to 'src/leap/bitmask/gui/systray.py')
-rw-r--r-- | src/leap/bitmask/gui/systray.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/leap/bitmask/gui/systray.py b/src/leap/bitmask/gui/systray.py index 93806f20..411a1b43 100644 --- a/src/leap/bitmask/gui/systray.py +++ b/src/leap/bitmask/gui/systray.py @@ -40,16 +40,20 @@ else: # TODO do switch based on theme +# TODO get also blocked icon +# TODO get spinning motion if platform.system() == 'Darwin': - TRAY_ICONS = (':/mac/wait.png', - ':/mac/on.png', - ':/mac/off.png') + TRAY_ICONS = (':/white/64/wait.png', + ':/white/64/on.png', + ':/white/64/off.png', + ':/white/64/blocked.png') else: - TRAY_ICONS = (':/black/22/wait.png', - ':/black/22/on.png', - ':/black/22/off.png') + TRAY_ICONS = (':/black/64/wait.png', + ':/black/64/on.png', + ':/black/64/off.png', + ':/black/64/blocked.png') # TODO I think this does not need QDialog @@ -100,6 +104,7 @@ class WithTrayIcon(QWidget): self.ICON_WAIT = QIcon(QPixmap(TRAY_ICONS[0])) self.ICON_ON = QIcon(QPixmap(TRAY_ICONS[1])) self.ICON_OFF = QIcon(QPixmap(TRAY_ICONS[2])) + self.ICON_BLOCKED = QIcon(QPixmap(TRAY_ICONS[3])) def _createActions(self): self.quitAction = QAction( |