mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-06 20:10:12 +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(
|
||||
e.currentTarget.checked
|
||||
? 'system'
|
||||
: settings.theme === AppTheme.DEFAULT_DARK
|
||||
? 'dark'
|
||||
: 'light',
|
||||
: (getAppTheme(settings.theme).mode ?? 'dark'),
|
||||
);
|
||||
}
|
||||
}}
|
||||
@@ -138,7 +136,7 @@ export const ThemeSettings = memo(() => {
|
||||
},
|
||||
});
|
||||
|
||||
const colorScheme = theme === AppTheme.DEFAULT_DARK ? 'dark' : 'light';
|
||||
const colorScheme = getAppTheme(theme).mode ?? 'dark';
|
||||
|
||||
setColorScheme(colorScheme);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user