Skip to content

Respect the menu style config in sub menus - #8572

Open
lucasmerlin wants to merge 3 commits into
mainfrom
lucas/respect-child-menu_style-in-popup
Open

lucasmerlin wants to merge 3 commits into
mainfrom
lucas/respect-child-menu_style-in-popup

Conversation

@lucasmerlin

@lucasmerlin lucasmerlin commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Previously it was ignored since menu_style was applied within Popup and the frame was created on the previous, unchanged outer ui.

@lucasmerlin lucasmerlin added bug Something is broken egui labels Sep 16, 2026
@github-actions

github-actions Bot commented Sep 16, 2026

Copy link
Copy Markdown

Preview available at https://egui-pr-preview.github.io/pr/8572-lucasrespect-child-menustyle-in-popup
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

View snapshot changes at kitdiff

lucasmerlin and others added 2 commits September 16, 2026 11:02
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
content: impl FnOnce(&mut Ui) -> R,
) -> Option<InnerResponse<R>> {
let frame = Frame::menu(ui.style());
let measurement_frame = Frame::menu(ui.style());

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

this is a bit of a weird name - maybe add a comment to it?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I would like to also see what style a sub-sub menu gets now. Does it inherit it from the closest ancestor, i.e. also become red with green outline?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something is broken egui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants