mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-19 12:20:20 +01:00
Load system theme for dark mode
This commit is contained in:
parent
67c13c2a78
commit
1e710069f7
@ -12,7 +12,8 @@ import {
|
||||
MenuItemConstructorOptions,
|
||||
IpcMainEvent,
|
||||
Notification,
|
||||
NotificationConstructorOptions
|
||||
NotificationConstructorOptions,
|
||||
nativeTheme
|
||||
} from 'electron'
|
||||
import Datastore from 'nedb'
|
||||
import { isEmpty } from 'lodash'
|
||||
@ -214,6 +215,11 @@ async function createWindow() {
|
||||
const language = await getLanguage()
|
||||
i18next.changeLanguage(language)
|
||||
|
||||
/**
|
||||
* Load system theme color for dark mode
|
||||
*/
|
||||
nativeTheme.themeSource = 'system'
|
||||
|
||||
/**
|
||||
* Set application menu
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user