KEMBAR78
Add `window.menuStyle` by benibenj · Pull Request #249339 · microsoft/vscode · GitHub
Skip to content

Conversation

@benibenj
Copy link
Contributor

Introduced the setting window.menuStyle which supports 3 values native, custom & inherit

Windows & Linux: (Requires full restart to apply)

  • native: use native application menu and native context menu
  • custom: use custom menu in the custom title bar and custom contxt menu
  • inherit: use the same menu and context menu style as the titlebar (DEFAULT)

MacOS:

  • native: use native context menu (DEFAULT)
  • custom: use custom contxt menu
  • inherit: use the same context menu style as the titlebar

closes #229053

@benibenj benibenj self-assigned this May 20, 2025
@benibenj benibenj requested a review from bpasero May 20, 2025 08:39
@benibenj benibenj enabled auto-merge (squash) May 20, 2025 08:39
@vs-code-engineering vs-code-engineering bot added this to the May 2025 milestone May 20, 2025
@benibenj benibenj merged commit 4e68b62 into main May 20, 2025
8 checks passed
@benibenj benibenj deleted the benibenj/ruling-constrictor branch May 20, 2025 15:15
Comment on lines +150 to +153
// Do not support native menu with custom title bar
if (!isMacintosh && !nativeTitle) {
return false;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me ask, why? many linux desktop environments support global menu for example which will work with custom title bar

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jul 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow use of custom menu with native titlebar (on Linux and Windows)

4 participants