Default to `system` `theme-setting`

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2021-12-20 09:17:03 -08:00 committed by GitHub
parent 0b526b4b1e
commit 44a5794559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -258,11 +258,7 @@ export function createIPCEvents(
window.storage.get('auto-download-update', true),
setAutoDownloadUpdate: value =>
window.storage.put('auto-download-update', value),
getThemeSetting: () =>
window.storage.get(
'theme-setting',
window.platform === 'darwin' ? 'system' : 'light'
),
getThemeSetting: () => window.storage.get('theme-setting', 'system'),
setThemeSetting: value => {
const promise = window.storage.put('theme-setting', value);
themeChanged();