fix accent color not set if system theme is on

This commit is contained in:
ammarahm-ed
2022-07-19 09:30:44 +05:00
parent 505611659d
commit e23464ac1b

View File

@@ -70,6 +70,7 @@ export function getColorScheme() {
const darkTheme = pitchBlack ? COLOR_SCHEME_PITCH_BLACK : COLOR_SCHEME_DARK;
if (useSystemTheme) {
setAccentColor(theme.accent);
Appearance.getColorScheme() === 'dark'
? setColorScheme(darkTheme)
: setColorScheme(COLOR_SCHEME_LIGHT);