From a76d57480d4e94d9091d2b48827541f10215a9f3 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 7 Sep 2020 20:53:13 +0200 Subject: [PATCH] fix: menu bar should have a background --- egui/src/containers/frame.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/egui/src/containers/frame.rs b/egui/src/containers/frame.rs index d772889f..72fcf386 100644 --- a/egui/src/containers/frame.rs +++ b/egui/src/containers/frame.rs @@ -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)), } }