Fix global settings action button icon and improve theme handling in GUI

This commit is contained in:
Vxrtrauter
2025-09-03 22:04:36 +02:00
parent 09a3a5a7a2
commit 4ddccc2341
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -1,6 +1,9 @@
from core.gui import run_gui as gui
from core.gui import MainWindow
from PySide6.QtGui import QIcon, QAction
from PySide6 import QtWidgets
import qdarktheme
import darkdetect
import sys
@@ -9,6 +12,10 @@ import sys
def run_gui():
app = QtWidgets.QApplication([])
if darkdetect.isDark:
app.setStyleSheet(qdarktheme.load_stylesheet("dark"))
else:
app.setStyleSheet(qdarktheme.load_stylesheet("light"))
widget = MainWindow()
widget.show()
sys.exit(app.exec())