mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user