mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-21 14:09:34 +01:00
mobile: fix color scheme
This commit is contained in:
@@ -44,13 +44,14 @@ if (appSettings) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const systemColorScheme = Appearance.getColorScheme();
|
const systemColorScheme = Appearance.getColorScheme();
|
||||||
const appColorScheme = appSettings.colorScheme;
|
const appColorScheme = appSettings?.colorScheme;
|
||||||
const useSystemTheme = appSettings.useSystemTheme;
|
const useSystemTheme = appSettings?.useSystemTheme;
|
||||||
const currentColorScheme = useSystemTheme ? systemColorScheme : appColorScheme;
|
const currentColorScheme = useSystemTheme ? systemColorScheme : appColorScheme;
|
||||||
|
|
||||||
const theme = currentColorScheme
|
const theme =
|
||||||
? appSettings?.darkTheme
|
currentColorScheme === "dark"
|
||||||
: appSettings?.lightTheme;
|
? appSettings?.darkTheme
|
||||||
|
: appSettings?.lightTheme;
|
||||||
|
|
||||||
const currentTheme =
|
const currentTheme =
|
||||||
theme || (currentColorScheme === "dark" ? ThemeDark : ThemeLight);
|
theme || (currentColorScheme === "dark" ? ThemeDark : ThemeLight);
|
||||||
|
|||||||
Reference in New Issue
Block a user