1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-28 07:23:13 -04:00

fix: menu bar should have a background

This commit is contained in:
Emil Ernerfeldt
2020-09-07 20:53:13 +02:00
parent d8e0b3bff6
commit a76d57480d

View File

@@ -22,11 +22,11 @@ impl Frame {
}
}
pub fn menu_bar(_style: &Style) -> Self {
pub fn menu_bar(style: &Style) -> Self {
Self {
margin: Vec2::splat(1.0),
corner_radius: 0.0,
fill: Default::default(),
fill: style.visuals.background_fill,
stroke: Stroke::new(0.5, Srgba::gray(128)),
}
}