mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-17 06:00:20 +02:00
fix: use theme mode property for macOS native window theme (#1685)
Co-authored-by: York <york@BonecharMac.local>
This commit is contained in:
@@ -109,9 +109,7 @@ export const ThemeSettings = memo(() => {
|
|||||||
localSettings.themeSet(
|
localSettings.themeSet(
|
||||||
e.currentTarget.checked
|
e.currentTarget.checked
|
||||||
? 'system'
|
? 'system'
|
||||||
: settings.theme === AppTheme.DEFAULT_DARK
|
: (getAppTheme(settings.theme).mode ?? 'dark'),
|
||||||
? 'dark'
|
|
||||||
: 'light',
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
@@ -138,7 +136,7 @@ export const ThemeSettings = memo(() => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const colorScheme = theme === AppTheme.DEFAULT_DARK ? 'dark' : 'light';
|
const colorScheme = getAppTheme(theme).mode ?? 'dark';
|
||||||
|
|
||||||
setColorScheme(colorScheme);
|
setColorScheme(colorScheme);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user