Skip to content

Commit e8dc2ad

Browse files
authored
🤖 Hide menu bar on Linux by default (#145)
Hides the menu bar on Linux by default (similar to VS Code UX). Users can press Alt to toggle visibility. **Why:** The traditional menu bar looks outdated on Linux. VS Code and other modern apps hide it by default for a cleaner look. **Changes:** - Set `autoHideMenuBar: true` for Linux platform in BrowserWindow options - Menu remains accessible via Alt key toggle - macOS and Windows behavior unchanged **Testing:** - [ ] Verify menu bar is hidden on Linux launch - [ ] Verify Alt key toggles menu visibility - [ ] Verify macOS/Windows show menu bar normally _Generated with `cmux`_
1 parent 3f2853c commit e8dc2ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ function createWindow() {
177177
preload: path.join(__dirname, "preload.js"),
178178
},
179179
title: "cmux - coder multiplexer",
180+
// Hide menu bar on Linux by default (like VS Code)
181+
// User can press Alt to toggle it
182+
autoHideMenuBar: process.platform === "linux",
180183
});
181184

182185
// Register IPC handlers with the main window

0 commit comments

Comments
 (0)