fix incorrect out of focus colors on some desktop environments

This commit is contained in:
dries.k
2023-08-17 23:12:45 +02:00
parent db8bfc0f44
commit bc4c83b71c

View File

@@ -1,4 +1,4 @@
from PyQt6 import QtCore, QtGui, QtWidgets from PyQt6 import QtCore, QtWidgets
from gotify_tray.utils import get_abs_path 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: with open(get_abs_path(f"gotify_tray/gui/themes/{theme}/style.qss"), "r") as f:
stylesheet += f.read() stylesheet += f.read()
app.setPalette(QtGui.QPalette()) app.setPalette(app.style().standardPalette())
app.setStyleSheet(stylesheet) app.setStyleSheet(stylesheet)