notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit cb5bd7523684ef3978d42ea89c30895df4c37b7d
parent 953848ff9aa98ba5729894b8d2a1737e025dff9a
Author: Fernando López Guevara <fernando.lguevara@gmail.com>
Date:   Tue,  1 Jul 2025 13:22:51 -0300

refactor: use Margin:ZERO

Diffstat:
Mcrates/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 @@ -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() })