mobile: fix color-scheme not change on toggle (#2024)

system theme
This commit is contained in:
Ammar Ahmed
2023-02-28 11:47:04 +05:00
committed by GitHub
parent abf1f5c61c
commit c21c4f1117

View File

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