mobile: fix color-scheme not change on toggle

system theme
This commit is contained in:
ammarahm-ed
2023-02-28 11:41:58 +05:00
parent 22c146e350
commit 55564ba900

View File

@@ -474,7 +474,14 @@ export const settingsGroups: SettingSection[] = [
description:
"Automatically switch to dark mode when system theme changes",
property: "useSystemTheme",
icon: "circle-half"
icon: "circle-half",
modifer: () => {
const current = SettingsService.get().useSystemTheme;
SettingsService.set({
useSystemTheme: !current
});
getColorScheme();
}
},
{
id: "enable-dark-mode",