From 41c04f0dc3e2683a9abc44c9f17cf9e3bbfc2944 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sun, 29 Nov 2026 15:12:12 +0000 Subject: [PATCH] Production merge: cargo fmt Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/app.rs | 21 ++++++++------ crates/ui-egui/src/presenter.rs | 49 ++++++++++++++++++--------------- 2 files changed, 40 insertions(+), 30 deletions(-) diff --git a/crates/ui-egui/src/app.rs b/crates/ui-egui/src/app.rs index e8f02c642..3f46ca3bd 100644 --- a/crates/ui-egui/src/app.rs +++ b/crates/ui-egui/src/app.rs @@ -424,14 +424,19 @@ impl SlideApp { .title_bar(|_| None, |ui, cx, app| ribbon::title_bar(app, ui, cx)) .top(Slot::new("ribbon").label("Ribbon").visible(editor).size(SlotSize::Content), |_| None, |ui, _, app| ribbon::show(app, ui)) .status(editor, |_| None, |ui, _, app| status::status_bar(app, ui)) - .page(show_page || self.backstage.is_some(), page_scope, |_| None, |ui, cx, app| { - if app.show.is_some() { - show::ui(app, ui, cx); - } else { - backstage::page(app, ui, cx); - } - app.shell_body_end(ui); - }) + .page( + show_page || self.backstage.is_some(), + page_scope, + |_| None, + |ui, cx, app| { + if app.show.is_some() { + show::ui(app, ui, cx); + } else { + backstage::page(app, ui, cx); + } + app.shell_body_end(ui); + }, + ) .page_kind(page_kind) .body(|ui, _, app| { if app.session.active().is_some() { diff --git a/crates/ui-egui/src/presenter.rs b/crates/ui-egui/src/presenter.rs index a8c8b4d14..4809f246e 100644 --- a/crates/ui-egui/src/presenter.rs +++ b/crates/ui-egui/src/presenter.rs @@ -342,28 +342,33 @@ mod tests { .map(|(index, preview)| store.get_or_put(ui.ctx(), index, Revision::new(0), || preview.image().unwrap())) .collect(); AppShell::new(WindowKey::main()) - .page(true, ShowCommands::SCOPE, |_| None, |ui, cx, trial: &mut PopupTrial| { - let snapshot = &trial.snapshot; - let model = PresenterModel { - aspect: snapshot.aspect, - slide: snapshot.slide, - total: snapshot.total, - ended: snapshot.ended, - elapsed: snapshot.elapsed, - paused: snapshot.paused, - notes: &snapshot.notes, - notes_px: snapshot.notes_px, - blank: None, - grid: snapshot.grid, - zoom_armed: snapshot.zoom_armed, - zoomed: snapshot.zoomed, - zoom_frame: None, - current: PreviewPic::Pending, - next: NextPic::Pending, - slides: crate::show::GridSource::Pictures(&pictures), - }; - presenter_body(ui, cx, &model, &mut trial.sent); - }) + .page( + true, + ShowCommands::SCOPE, + |_| None, + |ui, cx, trial: &mut PopupTrial| { + let snapshot = &trial.snapshot; + let model = PresenterModel { + aspect: snapshot.aspect, + slide: snapshot.slide, + total: snapshot.total, + ended: snapshot.ended, + elapsed: snapshot.elapsed, + paused: snapshot.paused, + notes: &snapshot.notes, + notes_px: snapshot.notes_px, + blank: None, + grid: snapshot.grid, + zoom_armed: snapshot.zoom_armed, + zoomed: snapshot.zoomed, + zoom_frame: None, + current: PreviewPic::Pending, + next: NextPic::Pending, + slides: crate::show::GridSource::Pictures(&pictures), + }; + presenter_body(ui, cx, &model, &mut trial.sent); + }, + ) .show(ui, trial); // Replaying a pass within the same frame must not replay its presses. if trial.rerun && ui.ctx().current_pass_index() == 0 {