add number of slides and items
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Chris Cochrun 2025-08-20 09:20:01 -05:00
parent adbfd8ce0f
commit c482fb9c73
2 changed files with 21 additions and 1 deletions

View file

@ -488,7 +488,21 @@ impl cosmic::Application for App {
}
fn footer(&self) -> Option<Element<Self::Message>> {
Some(text::body("Sux").into())
let total_items_text =
format!("Total Service Items: {}", self.service.len());
let total_slides_text =
format!("Total Slides: {}", self.presenter.total_slides);
let row = row![
text::body(total_items_text),
text::body(total_slides_text)
]
.spacing(10);
Some(
Container::new(row)
.align_right(Length::Fill)
.padding([5, 0, 0, 0])
.into(),
)
}
fn subscription(&self) -> Subscription<Self::Message> {