diff --git a/src/vs/platform/windows/electron-main/windows.ts b/src/vs/platform/windows/electron-main/windows.ts index d8720996b91..99f145c9236 100644 --- a/src/vs/platform/windows/electron-main/windows.ts +++ b/src/vs/platform/windows/electron-main/windows.ts @@ -192,21 +192,23 @@ export function defaultBrowserWindowOptions(accessor: ServicesAccessor, windowSt } if (useWindowControlsOverlay(configurationService)) { + if (isMacintosh) { + options.titleBarOverlay = true; + } else { - // This logic will not perfectly guess the right colors - // to use on initialization, but prefer to keep things - // simple as it is temporary and not noticeable - // On macOS, only the presence of `titleBarOverlay` is - // considered, the properties are ignored. + // This logic will not perfectly guess the right colors + // to use on initialization, but prefer to keep things + // simple as it is temporary and not noticeable - const titleBarColor = themeMainService.getWindowSplash(undefined)?.colorInfo.titleBarBackground ?? themeMainService.getBackgroundColor(); - const symbolColor = Color.fromHex(titleBarColor).isDarker() ? '#FFFFFF' : '#000000'; + const titleBarColor = themeMainService.getWindowSplash(undefined)?.colorInfo.titleBarBackground ?? themeMainService.getBackgroundColor(); + const symbolColor = Color.fromHex(titleBarColor).isDarker() ? '#FFFFFF' : '#000000'; - options.titleBarOverlay = { - height: 29, // the smallest size of the title bar on windows accounting for the border on windows 11 - color: titleBarColor, - symbolColor - }; + options.titleBarOverlay = { + height: 29, // the smallest size of the title bar on windows accounting for the border on windows 11 + color: titleBarColor, + symbolColor + }; + } } }