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
height: parentObj.delegateHeight
checked: appTheme.setting === "Dark"
checked: appTheme.setting.value === "Dark"
onCheckedChanged: {
appTheme.setting.value = checked ? "Dark":"Light"
appTheme.setting.setValue(checked ? "Dark":"Light")
}
}
}

View file

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

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