using the slides text

This commit is contained in:
Chris Cochrun 2024-11-20 16:31:45 -06:00
parent 86e86a9ca9
commit 52675b97e6

View file

@ -146,7 +146,8 @@ impl Presenter {
}
pub fn view(&self) -> Element<Message> {
let text = text!("This is frodo").size(50);
let text = text!("{}", self.current_slide.text())
.size(self.current_slide.font_size() as u16);
let text = Container::new(text).center(Length::Fill);
let black = Container::new(Space::new(0, 0))
.style(|_| {