From 07beeda79c3278cea47fac1312205d52852127c2 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 4 Dec 2024 22:05:46 +0200 Subject: [PATCH] feat(native-buttons): apply inset style for macOS --- src/services/window.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/services/window.ts b/src/services/window.ts index f60c5f783..27a174b78 100644 --- a/src/services/window.ts +++ b/src/services/window.ts @@ -115,8 +115,14 @@ async function createMainWindow(app: App) { function getWindowExtraOpts() { const extraOpts: Partial = {}; if (!optionService.getOptionBool('nativeTitleBarVisible')) { - extraOpts.titleBarStyle = "hidden"; - extraOpts.titleBarOverlay = (process.platform !== "darwin"); + if (process.platform !== "darwin") { + // Windows, Linux + extraOpts.titleBarStyle = "hidden"; + extraOpts.titleBarOverlay = true; + } else { + // macOS + extraOpts.titleBarStyle = "hiddenInset"; + } } return extraOpts;