diff --git a/src/main-process/appWindow.ts b/src/main-process/appWindow.ts index 761699fe..995f1af4 100644 --- a/src/main-process/appWindow.ts +++ b/src/main-process/appWindow.ts @@ -54,7 +54,7 @@ export class AppWindow { // macOS requires different handling to linux / win32 const customChrome: Pick = - process.platform !== 'darwin' && DesktopConfig.store.get('windowStyle') !== 'default' + process.platform !== 'darwin' && DesktopConfig.store.get('windowStyle') === 'custom' ? { titleBarStyle: 'hidden', titleBarOverlay: nativeTheme.shouldUseDarkColors ? this.darkOverlay : this.lightOverlay, @@ -258,7 +258,7 @@ export class AppWindow { } changeTheme(options: TitleBarOverlayOptions): void { - if (process.platform === 'darwin' || DesktopConfig.store.get('windowStyle') === 'default') return; + if (process.platform === 'darwin' || DesktopConfig.store.get('windowStyle') !== 'custom') return; if (options.height) options.height = Math.round(options.height); if (!options.height) delete options.height;