From d237f669ef56523481b30c2862d7f480bb50ba69 Mon Sep 17 00:00:00 2001 From: Paul Friederichsen Date: Thu, 29 Jun 2023 11:20:47 -0500 Subject: [PATCH] Use SVG for the Hydrus site menu item The same icon as used on the site itself. --- hydrus/client/ClientConstants.py | 1 + hydrus/client/gui/ClientGUI.py | 2 +- static/hydrus_black.svg | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 static/hydrus_black.svg diff --git a/hydrus/client/ClientConstants.py b/hydrus/client/ClientConstants.py index e916cf0b..c753780d 100644 --- a/hydrus/client/ClientConstants.py +++ b/hydrus/client/ClientConstants.py @@ -611,6 +611,7 @@ class GlobalIcons( object ): def _Initialise( self ): + self.hydrus = QG.QIcon( os.path.join( HC.STATIC_DIR, 'hydrus_black.svg' ) ) self.github = QG.QIcon( os.path.join( HC.STATIC_DIR, 'github.svg' ) ) self.twitter = QG.QIcon( os.path.join( HC.STATIC_DIR, 'twitter.svg' ) ) self.tumblr = QG.QIcon( os.path.join( HC.STATIC_DIR, 'tumblr.svg' ) ) diff --git a/hydrus/client/gui/ClientGUI.py b/hydrus/client/gui/ClientGUI.py index 2e51cf27..79d1867c 100644 --- a/hydrus/client/gui/ClientGUI.py +++ b/hydrus/client/gui/ClientGUI.py @@ -3212,7 +3212,7 @@ class FrameGUI( CAC.ApplicationCommandProcessorMixin, ClientGUITopLevelWindows.M links = ClientGUIMenus.GenerateMenu( menu ) - site = ClientGUIMenus.AppendMenuBitmapItem( links, 'site', 'Open hydrus\'s website, which is a mirror of the local help.', CC.global_pixmaps().file_repository, ClientPaths.LaunchURLInWebBrowser, 'https://hydrusnetwork.github.io/hydrus/' ) + site = ClientGUIMenus.AppendMenuIconItem( links, 'site', 'Open hydrus\'s website, which is a mirror of the local help.', CC.global_icons().hydrus, ClientPaths.LaunchURLInWebBrowser, 'https://hydrusnetwork.github.io/hydrus/' ) site = ClientGUIMenus.AppendMenuIconItem( links, 'github repository', 'Open the hydrus github repository.', CC.global_icons().github, ClientPaths.LaunchURLInWebBrowser, 'https://github.com/hydrusnetwork/hydrus' ) site = ClientGUIMenus.AppendMenuIconItem( links, 'latest build', 'Open the latest build on the hydrus github repository.', CC.global_icons().github, ClientPaths.LaunchURLInWebBrowser, 'https://github.com/hydrusnetwork/hydrus/releases/latest' ) site = ClientGUIMenus.AppendMenuIconItem( links, 'issue tracker', 'Open the github issue tracker, which is run by users.', CC.global_icons().github, ClientPaths.LaunchURLInWebBrowser, 'https://github.com/hydrusnetwork/hydrus/issues' ) diff --git a/static/hydrus_black.svg b/static/hydrus_black.svg new file mode 100644 index 00000000..b1207cb9 --- /dev/null +++ b/static/hydrus_black.svg @@ -0,0 +1 @@ + \ No newline at end of file