From 3b97fec939e7d33798c929df8b6ad5c14033dc3f Mon Sep 17 00:00:00 2001 From: 4gray Date: Thu, 4 Dec 2025 21:03:28 +0100 Subject: [PATCH] feat(electron-backend): enable macOS title bar overlay for main window Add macOS-specific title bar settings to the Electron main window creation so the app uses a hidden title bar with an overlay on Darwin. This ensures a more native, modern appearance on macOS while keeping existing minimum size and saved bounds behavior unchanged. --- apps/electron-backend/src/app/app.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/electron-backend/src/app/app.ts b/apps/electron-backend/src/app/app.ts index e262c3ed2..7eae76a51 100644 --- a/apps/electron-backend/src/app/app.ts +++ b/apps/electron-backend/src/app/app.ts @@ -79,6 +79,12 @@ export default class App { ...savedWindowBounds, minHeight: 600, minWidth: 900, + ...(process.platform === 'darwin' + ? { + titleBarStyle: 'hidden', + titleBarOverlay: true, + } + : {}), }); App.mainWindow.setMenu(null); if (!savedWindowBounds) {