previews: remove central panel frame
This was adding padding we don't want Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -28,6 +28,8 @@ impl PreviewApp {
|
|||||||
|
|
||||||
impl eframe::App for PreviewApp {
|
impl eframe::App for PreviewApp {
|
||||||
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
|
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
|
||||||
egui::CentralPanel::default().show(ctx, |ui| self.view.ui(ui));
|
egui::CentralPanel::default()
|
||||||
|
.frame(egui::Frame::none())
|
||||||
|
.show(ctx, |ui| self.view.ui(ui));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user