mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
titlebar switching
This commit is contained in:
parent
f0f2f54e5a
commit
33972c2a83
4 changed files with 37 additions and 2 deletions
|
|
@ -20,6 +20,7 @@ import {
|
|||
Tray,
|
||||
Menu,
|
||||
nativeImage,
|
||||
nativeTheme,
|
||||
BrowserWindowConstructorOptions,
|
||||
protocol,
|
||||
net,
|
||||
|
|
@ -414,6 +415,11 @@ const createWindow = async () => {
|
|||
// eslint-disable-next-line
|
||||
new AppUpdater();
|
||||
}
|
||||
|
||||
const theme = store.get('theme') as 'dark' | 'light' | 'system' | undefined;
|
||||
if (theme) {
|
||||
nativeTheme.themeSource = theme;
|
||||
}
|
||||
};
|
||||
|
||||
app.commandLine.appendSwitch('disable-features', 'HardwareMediaKeyHandling,MediaSessionService');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue