mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-09 15:19:56 +03:00
Add a darker Windows 7 tray icon
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -32,7 +32,7 @@ from Furious.Utility.Constants import (
|
||||
APPLICATION_VERSION,
|
||||
PLATFORM,
|
||||
)
|
||||
from Furious.Utility.Utility import bootstrapIcon, StateContext, Switch
|
||||
from Furious.Utility.Utility import bootstrapIcon, StateContext, Switch, isWindows7
|
||||
from Furious.Utility.Translator import Translatable, gettext as _
|
||||
from Furious.Utility.Proxy import Proxy
|
||||
from Furious.Utility.StartupOnBoot import StartupOnBoot
|
||||
@@ -119,14 +119,14 @@ class SystemTrayIcon(Translatable, QSystemTrayIcon):
|
||||
super().showMessage(_(APPLICATION_NAME), msg, *args, **kwargs)
|
||||
|
||||
def setPlainIcon(self):
|
||||
if PLATFORM == 'Darwin':
|
||||
if PLATFORM == 'Darwin' or isWindows7():
|
||||
# Darker
|
||||
self.setIcon(bootstrapIcon('rocket-takeoff-dark.svg'))
|
||||
else:
|
||||
self.setIcon(bootstrapIcon('rocket-takeoff.svg'))
|
||||
|
||||
def setConnectedIcon(self):
|
||||
if PLATFORM == 'Darwin':
|
||||
if PLATFORM == 'Darwin' or isWindows7():
|
||||
# Darker
|
||||
self.setIcon(bootstrapIcon('rocket-takeoff-connected-dark.svg'))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user