titlebar switching

This commit is contained in:
Kendall Garner
2024-01-21 22:47:59 -08:00
parent f0f2f54e5a
commit 33972c2a83
4 changed files with 37 additions and 2 deletions
+6
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');