From d698365dac9e747315cc12e020f36b87c0a24d82 Mon Sep 17 00:00:00 2001 From: Lucas Meurer Date: Tue, 18 Mar 2025 11:29:20 +0100 Subject: [PATCH] Fix the `StyleModifier` not being passed from popup to menu (#5805) * [x] I have followed the instructions in the PR template --- crates/egui/src/containers/popup.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/egui/src/containers/popup.rs b/crates/egui/src/containers/popup.rs index 4a457bf0..70050062 100644 --- a/crates/egui/src/containers/popup.rs +++ b/crates/egui/src/containers/popup.rs @@ -556,7 +556,9 @@ impl<'a> Popup<'a> { .info(info.unwrap_or_else(|| { UiStackInfo::new(kind.into()).with_tag_value( MenuConfig::MENU_CONFIG_TAG, - MenuConfig::new().close_behavior(close_behavior), + MenuConfig::new() + .close_behavior(close_behavior) + .style(style.clone()), ) }));