Skip to content

Add window.menuStyle - #249339

Merged
Benjamin Christopher Simmonds (benibenj) merged 3 commits into
mainfrom
benibenj/ruling-constrictor
May 20, 2025
Merged

Benjamin Christopher Simmonds (benibenj) merged 3 commits into
mainfrom
benibenj/ruling-constrictor

Conversation

@benibenj

Copy link
Copy Markdown
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

@vs-code-engineering vs-code-engineering Bot added this to the May 2025 milestone May 20, 2025
Comment on lines +150 to +153
// Do not support native menu with custom title bar
if (!isMacintosh && !nativeTitle) {
return false;
}

Copy link
Copy Markdown

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)

3 participants