From cb5bd7523684ef3978d42ea89c30895df4c37b7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Lo=CC=81pez=20Guevara?= Date: Tue, 1 Jul 2025 13:22:51 -0300 Subject: [PATCH] refactor: use Margin:ZERO --- crates/notedeck/src/app.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/crates/notedeck/src/app.rs b/crates/notedeck/src/app.rs index 4c604fb4..0bab9e38 100644 --- a/crates/notedeck/src/app.rs +++ b/crates/notedeck/src/app.rs @@ -8,6 +8,7 @@ use crate::{ DataPathType, Directory, Images, NoteAction, NoteCache, RelayDebugView, ThemeHandler, UnknownIds, }; +use egui::Margin; use egui::ThemePreference; use egui_winit::clipboard::Clipboard; use enostr::RelayPool; @@ -51,14 +52,8 @@ pub struct Notedeck { /// Our chrome, which is basically nothing fn main_panel(style: &egui::Style) -> egui::CentralPanel { - let inner_margin = egui::Margin { - top: 0, - left: 0, - right: 0, - bottom: 0, - }; egui::CentralPanel::default().frame(egui::Frame { - inner_margin, + inner_margin: Margin::ZERO, fill: style.visuals.panel_fill, ..Default::default() })