titlebar switching

This commit is contained in:
Kendall Garner 2024-01-21 22:47:59 -08:00
parent f0f2f54e5a
commit 33972c2a83
No known key found for this signature in database
GPG key ID: 18D2767419676C87
4 changed files with 37 additions and 2 deletions

View file

@ -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');