From fc2d5d68b3c99bcfb58bf80ba44ad8e5bec2cca7 Mon Sep 17 00:00:00 2001 From: Philip Kristoffersen Date: Sun, 17 Apr 2022 08:43:48 +0200 Subject: [PATCH] Remove frames of panels to clean up look --- src/ui/uiapp.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/uiapp.rs b/src/ui/uiapp.rs index f9c8395..8995a6a 100644 --- a/src/ui/uiapp.rs +++ b/src/ui/uiapp.rs @@ -126,9 +126,10 @@ impl epi::App for MyEguiApp { } fn update(&mut self, ctx: &egui::Context, _frame: &epi::Frame) { - + let frame = egui::Frame::default().stroke(Stroke::new(0., BACKGROUND_COLOR)).fill(BACKGROUND_COLOR); egui::SidePanel::new(egui::panel::Side::Left, "Side Panel") .default_width(40.0) + .frame(frame) .show(ctx, |ui| { let texture = self.get_logo_image(ui); let size = texture.size_vec2(); @@ -144,6 +145,7 @@ impl epi::App for MyEguiApp { if self.games_to_sync.borrow().is_some(){ egui::TopBottomPanel::new(egui::panel::TopBottomSide::Bottom, "Bottom Panel") + .frame(frame) .show(ctx,|ui|{ { let status = &*self.status_reciever.borrow();