Move Program to application module

This commit is contained in:
Héctor Ramón Jiménez 2024-03-17 14:16:38 +01:00
parent 7e1ef7d150
commit 54f44754eb
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
29 changed files with 58 additions and 80 deletions

View file

@ -4,7 +4,7 @@ use iced::{Element, Font, Length};
const ICON_FONT: Font = Font::with_name("icons");
pub fn main() -> iced::Result {
iced::application("Checkbox - Iced", Example::update, Example::view)
iced::program("Checkbox - Iced", Example::update, Example::view)
.font(include_bytes!("../fonts/icons.ttf").as_slice())
.run()
}