fixed non working dark mode

This commit is contained in:
Dorian Zedler 2020-08-09 12:20:04 +02:00
parent c7d55afb42
commit 1ddf07eab3
Signed by: dorian
GPG key ID: D3B255CB8BC7CD37
3 changed files with 4 additions and 7 deletions

View file

@ -55,10 +55,10 @@ Column {
width: parent.width width: parent.width
height: parentObj.delegateHeight height: parentObj.delegateHeight
checked: appTheme.setting === "Dark" checked: appTheme.setting.value === "Dark"
onCheckedChanged: { onCheckedChanged: {
appTheme.setting.value = checked ? "Dark":"Light" appTheme.setting.setValue(checked ? "Dark":"Light")
} }
} }
} }

View file

@ -102,10 +102,7 @@ Window {
ScStwAppThemeManager { ScStwAppThemeManager {
id: appTheme id: appTheme
property ScStwSetting setting: speedBackend.settings.getSetting(ScStwAppSettings.AppThemeSetting, ScStwAppSettings.KeyLevel) property ScStwSetting setting: speedBackend.settings.getSetting(ScStwAppSettings.AppThemeSetting, ScStwAppSettings.KeyLevel)
themeName: setting.value
Component.onCompleted: {
appTheme.setTheme(speedBackend.settings.readSetting(ScStwAppSettings.AppThemeSetting))
}
} }
/*------------------------ /*------------------------

@ -1 +1 @@
Subproject commit e3cea065580dd1b5855f2860d7d21d545ec59790 Subproject commit ec2d6fb9ef359684fefda4f640f64ce2e7e6c89c