mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
mobile: fix color-scheme not change on toggle
system theme
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user