anis
February 26, 2022, 2:46pm
1
Expected behavior
Would it be possible to add an option to hide the menu bar? I know it’s not much, but it would save a few more pixels of vertical space and make it look less cluttered for those who have the need.
I second this request… Personally I haven’t used applications with menu bars for many years now - they really look outdated and are not touch pad/screen friendly.
I am sure, there are relevant UX/UI questions to be solved… in the mean time delta-chat could do what Firefox and Signal do: hide the menu bar by
pressing Alt
offer an option to hide the menu bar from the settings, that are in the Hamburger Menu.
Of course a GNOME style Headerbar would be the best solution imho.
Best
Citing from electronjs.org
win.autoHideMenuBar
A boolean property that determines whether the window menu bar should hide itself
automatically. Once set, the menu bar will only show when users press the single Alt key.
If the menu bar is already visible, setting this property to true won’t hide it immediately.
Any change in there ?
Because for me it’s an essential change that must be added, as the menu bar is actually useless and confuse some “less technical people” in my familly, because when i ask them to go to settings they systématically ask in the bar at top or the gear.
r10s
September 13, 2026, 11:07pm
6
yeah! already current desktop releases allow to hide the menu bar
main ← Bushikot:bushikot/hide-menu-bar
opened 07:13PM - 14 Jul 26 UTC
## Summary
Adds a **"Hide Menu Bar"** setting that lets users auto-hide the n… ative menu bar (File, Edit, View, Help). When hidden, it only appears when <kbd>Alt</kbd> is pressed (Linux/Windows).
On **macOS** the setting is a no-op — the native menu bar is always visible per platform convention. In Tauri, the menu item is not constructed at all (`#[cfg(not(target_os = "macos"))]`). In Electron, the menu item is hidden on macOS via `visible: process.platform !== 'darwin'`.
Default value is **`false`** (menu bar visible by default).
[Screencast From 2026-06-23 19-21-08.webm](https://github.com/user-attachments/assets/11b2ea24-f7c0-4d17-8764-90d9c41239c0)
## Targets
### Electron
- `src/windows/main.ts` — `applyHideMenuBar()`, `toggleHideMenuBar()`, `isHideMenuBar()`
- `src/menu.ts` — checkbox in View menu (between Float on Top and Toggle Full Screen); hidden on macOS via `visible: process.platform !== 'darwin'`
- `src/ipc.ts` — IPC handler calls the single `applyHideMenuBar()` entry point
- Secondary windows (help `windows/help.ts`, html-email `windows/html_email.ts`, webxdc `deltachat/webxdc.ts`) apply the setting at creation time via `autoHideMenuBar: DesktopSettings.state.hideMenuBar`
- Setting passed to the main `BrowserWindow` at init via `hideMenuBar` option
#### Windows coverage (Electron)
| Window | Menu bar behaviour |
|---|---|
| main | `autoHideMenuBar` + `setMenuBarVisibility()` driven by the setting (live-updated on toggle) |
| help / html-email / webxdc | `autoHideMenuBar` applied at window creation |
| video-call | hardcoded `autoHideMenuBar: true` — see rationale below |
**Video call window** (`windows/video-call.ts`) keeps a hardcoded `autoHideMenuBar: true`. It is a transient, focused window that only lives for the duration of a call and ships its own minimal View-only menu (zoom / fullscreen / devtools). Forcing the menu bar to stay visible during a call (which is what `hideMenuBar: false` would otherwise do) would be distracting, and auto-hiding it on Alt is already the most aggressive useful behaviour — so the user setting is intentionally not applied there.
### Tauri
- Four menu definitions (main, help, html-email, webxdc) — each has `HideMenuBar` checkbox
- `settings.rs` — `get_hide_menu_bar()`, `apply_hide_menu_bar()`, `toggle_hide_menu_bar()`
- Uses `window.remove_menu()` / `window.set_menu()` (Tauri has no `autoHideMenuBar`)
- Called at startup in `lib.rs`
- `#[cfg(not(target_os = "macos"))]` on menu item and apply logic
### Frontend
- `DesktopSettingsSwitch` for `hideMenuBar` in Appearance settings (hidden in browser)
- `onDesktopSettingChanged` runtime hook — syncs backend-triggered changes to the UI
### Shared / Runtime
- `DesktopSettingsType.hideMenuBar: boolean` — default `false`
- `Runtime.onDesktopSettingChanged` interface — implemented for Electron & Tauri
## Notes
- macOS: menu item not constructed (Tauri) / hidden via `visible: false` (Electron); `applyHideMenuBar`/`apply_hide_menu_bar` are no-ops
- Tauri `inner_update_all` respects the hide state, so toggling from either the menu item or the Settings UI keeps the main window and all secondary windows (help, html-email, webxdc) consistent. `MenuManager::register_window` also respects the setting, so a secondary window opened while hiding is enabled never shows a menu bar in the first place.
- Electron secondary windows apply the setting when they are opened; an already-open secondary window is not live-updated when the setting is toggled afterwards (minor gap, matching the accepted Tauri behaviour). Closing and reopening the window picks up the new value.
## Testing
- Developed and manually tested on **Linux** only (Wayland), for Electron, Tauri & Browser targets (Firefox). MacOS and Windows builds were **not** manually run.
- Platform-specific paths are guarded: Tauri uses `#[cfg(not(target_os = "macos"))]` for menu item construction and `apply_hide_menu_bar`; Electron uses `process.platform === 'darwin'` guards in `applyHideMenuBar()` and `visible: process.platform !== 'darwin'` on the menu item.
- `cargo check`, `cargo clippy`, `pnpm check:types` and `pnpm check:lint`/`check:format` pass. Manual verification of the actual hide/show behaviour on macOS and Windows would be appreciated from reviewers.