From 78a8de2e8f8d6da82680af4701cfa6e61cfe389c Mon Sep 17 00:00:00 2001 From: Lucas Meurer Date: Wed, 25 Jun 2025 14:26:36 +0200 Subject: [PATCH] Respect `StyleModifier` in popup `Frame` style (#7265) This makes it possible to style the Popup's frame using a StyleModifier --- crates/egui/src/containers/popup.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/egui/src/containers/popup.rs b/crates/egui/src/containers/popup.rs index 47e800d2..c40578bc 100644 --- a/crates/egui/src/containers/popup.rs +++ b/crates/egui/src/containers/popup.rs @@ -573,10 +573,9 @@ impl<'a> Popup<'a> { area = area.default_width(width); } - let frame = frame.unwrap_or_else(|| Frame::popup(&ctx.style())); - let mut response = area.show(&ctx, |ui| { style.apply(ui.style_mut()); + let frame = frame.unwrap_or_else(|| Frame::popup(ui.style())); frame.show(ui, content).inner });