Default to system
theme-setting
This commit is contained in:
parent
67339001a8
commit
b08691b35b
1 changed files with 1 additions and 5 deletions
|
@ -258,11 +258,7 @@ export function createIPCEvents(
|
||||||
window.storage.get('auto-download-update', true),
|
window.storage.get('auto-download-update', true),
|
||||||
setAutoDownloadUpdate: value =>
|
setAutoDownloadUpdate: value =>
|
||||||
window.storage.put('auto-download-update', value),
|
window.storage.put('auto-download-update', value),
|
||||||
getThemeSetting: () =>
|
getThemeSetting: () => window.storage.get('theme-setting', 'system'),
|
||||||
window.storage.get(
|
|
||||||
'theme-setting',
|
|
||||||
window.platform === 'darwin' ? 'system' : 'light'
|
|
||||||
),
|
|
||||||
setThemeSetting: value => {
|
setThemeSetting: value => {
|
||||||
const promise = window.storage.put('theme-setting', value);
|
const promise = window.storage.put('theme-setting', value);
|
||||||
themeChanged();
|
themeChanged();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue