diff --git a/client/app.py b/client/app.py index 9d77fe4..7e358c6 100644 --- a/client/app.py +++ b/client/app.py @@ -436,7 +436,12 @@ def switch(self): MainWindow = QMainWindow() window = GUI(MainWindow) - tray = SystemTrayApp(QIcon(getPath('icon.png')), MainWindow) + iconFile = 'taskbarDark.png' + if sys.platform.startswith('darwin'): + import subprocess + if not bool(subprocess.Popen('defaults read -g AppleInterfaceStyle', stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell = True).communicate()[0]): + iconFile = 'taskbarLight.png' + tray = SystemTrayApp(QIcon(getPath(iconFile)), MainWindow) window.setupUi(MainWindow) window.selfService() diff --git a/client/taskbarDark.png b/client/taskbarDark.png new file mode 100644 index 0000000..5e54eef Binary files /dev/null and b/client/taskbarDark.png differ diff --git a/client/taskbarLight.png b/client/taskbarLight.png new file mode 100644 index 0000000..a668421 Binary files /dev/null and b/client/taskbarLight.png differ