[Pkg-privacy-commits] [onionshare] 238/256: Add a grayscale OnionShare logo for the systray icon in macOS
Ulrike Uhlig
ulrike at moszumanska.debian.org
Fri May 26 12:53:49 UTC 2017
This is an automated email from the git hooks/post-receive script.
ulrike pushed a commit to branch master
in repository onionshare.
commit 63e491bddfeb178da19f5025fbc866c5d10f881b
Author: Micah Lee <micah at micahflee.com>
Date: Mon May 22 16:23:19 2017 -0700
Add a grayscale OnionShare logo for the systray icon in macOS
---
onionshare_gui/onionshare_gui.py | 8 +++++++-
share/images/logo_grayscale.png | Bin 0 -> 2258 bytes
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py
index caaf6fc..d9d3a43 100644
--- a/onionshare_gui/onionshare_gui.py
+++ b/onionshare_gui/onionshare_gui.py
@@ -147,12 +147,18 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.check_for_updates()
def _initSystemTray(self):
+ system = common.get_platform()
+
menu = QtWidgets.QMenu()
exitAction = menu.addAction(strings._('systray_menu_exit', True))
exitAction.triggered.connect(self.close)
self.systemTray = QtWidgets.QSystemTrayIcon(self)
- self.systemTray.setIcon(QtGui.QIcon(common.get_resource_path('images/logo.png')))
+ # The convention is Mac systray icons are always grayscale
+ if system == 'Darwin':
+ self.systemTray.setIcon(QtGui.QIcon(common.get_resource_path('images/logo_grayscale.png')))
+ else:
+ self.systemTray.setIcon(QtGui.QIcon(common.get_resource_path('images/logo.png')))
self.systemTray.setContextMenu(menu)
self.systemTray.show()
diff --git a/share/images/logo_grayscale.png b/share/images/logo_grayscale.png
new file mode 100644
index 0000000..950d9ff
Binary files /dev/null and b/share/images/logo_grayscale.png differ
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git
More information about the Pkg-privacy-commits
mailing list