mirror of
https://github.com/storytold/deckcraft.git
synced 2026-12-01 18:23:52 -06:00
Production merge: cargo fmt
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ad9e752a48
commit
41c04f0dc3
@@ -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() {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user