Support system theme on all platforms
This commit is contained in:
parent
2529c7f9e3
commit
128859fdb7
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
function resolveTheme() {
|
||||
const theme = storage.get('theme-setting') || 'system';
|
||||
if (window.platform === 'darwin' && theme === 'system') {
|
||||
if (theme === 'system') {
|
||||
return window.systemTheme;
|
||||
}
|
||||
return theme;
|
||||
|
|
|
@ -159,7 +159,7 @@
|
|||
audioNotificationDescription: i18n('audioNotificationDescription'),
|
||||
isAudioNotificationSupported: Settings.isAudioNotificationSupported(),
|
||||
isHideMenuBarSupported: Settings.isHideMenuBarSupported(),
|
||||
hasSystemTheme: window.platform === 'darwin',
|
||||
hasSystemTheme: true,
|
||||
themeLight: i18n('themeLight'),
|
||||
themeDark: i18n('themeDark'),
|
||||
themeSystem: i18n('themeSystem'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue