feat(menu): show File/Edit/View/Window menu bar on Windows & Linux (#1111)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Neil
2026-04-25 21:53:32 -07:00
committed by GitHub
co-authored by Orca
parent f8a0e07513
commit 6d3d366d45
3 changed files with 245 additions and 159 deletions
+6 -1
View File
@@ -84,7 +84,12 @@ export function createMainWindow(
minWidth: 600,
minHeight: 400,
show: false,
autoHideMenuBar: true,
// Why: on macOS the menu lives in the system menu bar, so the in-window
// menu bar is irrelevant and stays hidden. On Windows/Linux the menu bar
// *is* the only surface for File/Edit/View/Window, so keep it always
// visible — otherwise users never see the menu items at all (they'd have
// to press Alt to toggle it).
autoHideMenuBar: process.platform === 'darwin',
backgroundColor: nativeTheme.shouldUseDarkColors ? '#0a0a0a' : '#ffffff',
titleBarStyle: process.platform === 'darwin' ? 'hiddenInset' : undefined,
// Why: initial position for 1x zoom; syncTrafficLightPosition() adjusts