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