Fusion als Standard-Thema gesetzt. Thema wird in config.json gespeichert
This commit is contained in:
@@ -57,6 +57,12 @@ class MainWindow(QMainWindow):
|
||||
|
||||
# Theme-Menü initialisieren
|
||||
self._setup_theme_menu()
|
||||
|
||||
#
|
||||
if (theme := app_settings.theme):
|
||||
self.change_theme(theme)
|
||||
else:
|
||||
self.change_theme('Fusion')
|
||||
|
||||
# Bilder laden
|
||||
self._load_images()
|
||||
@@ -109,6 +115,8 @@ class MainWindow(QMainWindow):
|
||||
action.setChecked(action.text() == theme_name)
|
||||
|
||||
print(f"Theme erfolgreich gewechselt zu: {theme_name}")
|
||||
app_settings.theme = theme_name
|
||||
app_settings.save()
|
||||
else:
|
||||
print(f"Fehler: Theme '{theme_name}' konnte nicht erstellt werden")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user