From bc4c83b71c1018e07c81157acdfa89cac2a2489f Mon Sep 17 00:00:00 2001 From: "dries.k" Date: Thu, 17 Aug 2023 23:12:45 +0200 Subject: [PATCH] fix incorrect out of focus colors on some desktop environments --- gotify_tray/gui/themes/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gotify_tray/gui/themes/__init__.py b/gotify_tray/gui/themes/__init__.py index 72dfd0f..360ee3f 100644 --- a/gotify_tray/gui/themes/__init__.py +++ b/gotify_tray/gui/themes/__init__.py @@ -1,4 +1,4 @@ -from PyQt6 import QtCore, QtGui, QtWidgets +from PyQt6 import QtCore, QtWidgets from gotify_tray.utils import get_abs_path @@ -18,7 +18,7 @@ def set_theme(app: QtWidgets.QApplication): with open(get_abs_path(f"gotify_tray/gui/themes/{theme}/style.qss"), "r") as f: stylesheet += f.read() - app.setPalette(QtGui.QPalette()) + app.setPalette(app.style().standardPalette()) app.setStyleSheet(stylesheet)