Compare commits

...

1 Commits

Author SHA1 Message Date
ammarahm-ed
55564ba900 mobile: fix color-scheme not change on toggle
system theme
2023-02-28 11:41:58 +05:00

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",