Skip to content

Commit

Permalink
Remove coupling requirement from initial feature
Browse files Browse the repository at this point in the history
- Removes on-by-default behaviour, leaving no changes to default behaviour
- Allows linked commits to happen async
  • Loading branch information
webfiltered committed Dec 13, 2024
1 parent 1a6a8c7 commit 8ec27a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main-process/appWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class AppWindow {

// macOS requires different handling to linux / win32
const customChrome: Pick<Electron.BrowserWindowConstructorOptions, 'titleBarStyle' | 'titleBarOverlay'> =
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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8ec27a7

Please sign in to comment.