mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Respect StyleModifier in popup Frame style (#7265)
This makes it possible to style the Popup's frame using a StyleModifier
This commit is contained in:
@@ -573,10 +573,9 @@ impl<'a> Popup<'a> {
|
|||||||
area = area.default_width(width);
|
area = area.default_width(width);
|
||||||
}
|
}
|
||||||
|
|
||||||
let frame = frame.unwrap_or_else(|| Frame::popup(&ctx.style()));
|
|
||||||
|
|
||||||
let mut response = area.show(&ctx, |ui| {
|
let mut response = area.show(&ctx, |ui| {
|
||||||
style.apply(ui.style_mut());
|
style.apply(ui.style_mut());
|
||||||
|
let frame = frame.unwrap_or_else(|| Frame::popup(ui.style()));
|
||||||
frame.show(ui, content).inner
|
frame.show(ui, content).inner
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user