diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 4d579339..85f74ad0 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -386,9 +386,10 @@ function buildBrowserWindowOptions(): BrowserWindowConstructorOptions { } if (process.platform === "darwin") { - options.titleBarStyle = "hidden"; - options.trafficLightPosition = { x: 10, y: 10 }; - + if (!nativeTitleBar) { + options.titleBarStyle = "hidden"; + options.trafficLightPosition = { x: 10, y: 10 }; + } if (macosVibrancyStyle) { options.vibrancy = macosVibrancyStyle; options.backgroundColor = "#00000000"; @@ -406,7 +407,6 @@ function createMainWindow() { const win = (mainWin = new BrowserWindow(buildBrowserWindowOptions())); win.setMenuBarVisibility(false); - if (process.platform === "darwin" && Settings.store.nativeTitleBar) win.setWindowButtonVisibility(false); win.on("close", e => { const useTray = !isDeckGameMode && Settings.store.minimizeToTray && Settings.store.tray; diff --git a/src/main/utils/popout.ts b/src/main/utils/popout.ts index fc814664..e1fc5234 100644 --- a/src/main/utils/popout.ts +++ b/src/main/utils/popout.ts @@ -38,7 +38,7 @@ const DEFAULT_POPOUT_OPTIONS: BrowserWindowConstructorOptions = { minWidth: MIN_POPOUT_WIDTH, minHeight: MIN_POPOUT_HEIGHT, frame: Settings.store.nativeTitleBar, - titleBarStyle: process.platform === "darwin" ? "hidden" : undefined, + titleBarStyle: process.platform === "darwin" && !Settings.store.nativeTitleBar ? "hidden" : undefined, trafficLightPosition: process.platform === "darwin" ? { diff --git a/src/renderer/patches/windowsTitleBar.tsx b/src/renderer/patches/windowsTitleBar.tsx index 505ca910..222c306d 100644 --- a/src/renderer/patches/windowsTitleBar.tsx +++ b/src/renderer/patches/windowsTitleBar.tsx @@ -5,10 +5,11 @@ */ import { Settings } from "renderer/settings"; +import { isMac } from "renderer/utils"; import { addPatch } from "./shared"; -if (!Settings.store.nativeTitleBar) +if (!isMac && !Settings.store.nativeTitleBar) addPatch({ patches: [ {