fixed non working dark mode
This commit is contained in:
parent
c7d55afb42
commit
1ddf07eab3
3 changed files with 4 additions and 7 deletions
|
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
Reference in a new issue