Skip to content

Core menus and Popover#19983

Closed
viridia wants to merge 3 commits into
bevyengine:mainfrom
viridia:core_menu
Closed

Core menus and Popover#19983
viridia wants to merge 3 commits into
bevyengine:mainfrom
viridia:core_menu

Conversation

@viridia

@viridia viridia commented Jul 6, 2025

Copy link
Copy Markdown
Contributor

Objective

This is a draft PR for the "core menu" and "popover" components.

Part of #19236

@alice-i-cecile alice-i-cecile added C-Feature A new feature, making something new possible A-UI Graphical user interfaces, styles, layouts, and widgets S-Blocked This cannot move forward until something else changes M-Release-Note Work that should be called out in the blog due to impact labels Jul 6, 2025
@alice-i-cecile

Copy link
Copy Markdown
Member

Per our discussion, this is blocked on better templates.

@ickshonpe

Copy link
Copy Markdown
Contributor

Needs #20064

/// Close the entire menu stack. The boolean argument indicates whether we want to retain
/// focus on the menu owner (the menu button). Whether this is true will depend on the reason
/// for closing: a click on the background should not restore focus to the button.
CloseAll(bool),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry for the drive by. But this bool behavior isn't obvious to me. Could we replace it with an enum with two variants that work out the behavior explicitly?

pub enum {
  FocusReturnToOwner,
  FocusDefaultEntity,  // or whatever name/behavior would work here
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My latest version of this gets rid of it entirely.

@viridia

viridia commented Oct 26, 2025

Copy link
Copy Markdown
Contributor Author

Closing in favor of #21636

@viridia viridia closed this Oct 26, 2025
@viridia viridia deleted the core_menu branch April 16, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-UI Graphical user interfaces, styles, layouts, and widgets C-Feature A new feature, making something new possible M-Release-Note Work that should be called out in the blog due to impact S-Blocked This cannot move forward until something else changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants