Skip to content

DRAFT: Creating a MenuBar::visible property#11272

Open
npwoods wants to merge 4 commits intoslint-ui:masterfrom
npwoods:menubar_visible_property
Open

DRAFT: Creating a MenuBar::visible property#11272
npwoods wants to merge 4 commits intoslint-ui:masterfrom
npwoods:menubar_visible_property

Conversation

@npwoods
Copy link
Copy Markdown
Contributor

@npwoods npwoods commented Apr 5, 2026

This allows a menu bar to be invisible, but also to have menu shortcuts to function properly.

This is incomplete; when we're doing menus with the muda crate, the visible property is not honored.

For muda to be supported, it looks like some additional plumbing would have to happen in internal/core/window.rs as setup_menubar() is passed a vtable::VRc<MenuVTable>, and after lowering the menubar-visible property is on MenuBarImpl. While I'm not an expert here, it looks like something more substantial would need to be passed to setup_menubar() as it is not just necessary to pass the property, but the facilities required to respond to changes.

npwoods and others added 4 commits April 5, 2026 15:19
This allows a menu bar to be invisible, but also to have menu shortcuts to function properly.

This is incomplete; when we're doing menus with the `muda` crate, the `visible` property is not honored
…e to honor it

Notes
- Documentation added to `menubar.mdx`
- Nothing is setting this property yet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant