adapt to new iced style functions

Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
This commit is contained in:
Fabrizio Iannetti 2024-03-09 10:29:46 +01:00
parent 3ae7c8bb6b
commit ee34ecc130
2 changed files with 158 additions and 431 deletions

584
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,7 @@
mod ui; mod ui;
mod model; mod model;
use iced::widget::button;
use ui::calendar; use ui::calendar;
use model::{ use model::{
events::EventsCollection, events::EventsCollection,
@ -139,12 +140,12 @@ impl Controls {
.push( .push(
Button::new(Text::new("<")) Button::new(Text::new("<"))
.on_press(self.get_msg_prev()) .on_press(self.get_msg_prev())
.style(theme::Button::Secondary), .style(button::secondary),
) )
.push( .push(
Button::new(Text::new(">")) Button::new(Text::new(">"))
.on_press(self.get_msg_next()) .on_press(self.get_msg_next())
.style(theme::Button::Secondary), .style(button::secondary),
) )
.push( .push(
Text::new(description) Text::new(description)