diff --git a/src/main.rs b/src/main.rs index e7a11a9..640ac5d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,30 @@ -fn main() { - println!("Hello, world!"); +use iced::{widget::text, Element, Result, Sandbox, Settings}; + +#[derive(Debug)] +enum Message {} + +struct Application; + +impl Sandbox for Application { + type Message = Message; + + fn new() -> Self { + Self + } + + fn title(&self) -> String { + String::from("Thief Book Manager") + } + + fn update(&mut self, message: Message) { + match message {} + } + + fn view(&self) -> Element<'_, Message> { + text("Hello, world!").into() + } +} + +fn main() -> Result { + Application::run(Settings::default()) }