fix(@desktop/onboarding): use system theme while onboarding

Fixes #6630
This commit is contained in:
PavelS 2022-08-30 18:23:21 +03:00 committed by PavelS
parent ba4aac6456
commit 6fc340d2cd
1 changed files with 5 additions and 2 deletions

View File

@ -158,6 +158,8 @@ StatusWindow {
}
startupOnboarding.unload()
startupOnboarding.visible = false
Style.changeTheme(localAppSettings.theme, systemPalette.isCurrentSystemThemeDark())
}
}
}
@ -207,12 +209,13 @@ StatusWindow {
}
function changeThemeFromOutside() {
Style.changeTheme(localAppSettings.theme, systemPalette.isCurrentSystemThemeDark())
Style.changeTheme(startupOnboarding.visible ? Universal.System : localAppSettings.theme,
systemPalette.isCurrentSystemThemeDark())
}
Component.onCompleted: {
Global.applicationWindow = this;
Style.changeTheme(localAppSettings.theme, systemPalette.isCurrentSystemThemeDark());
Style.changeTheme(Universal.System, systemPalette.isCurrentSystemThemeDark());
restoreAppState();
}