From ee3cd780e21260257b401c3f5cbababd9e27a15a Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Wed, 13 Aug 2025 07:50:21 +0000 Subject: task-073 Co-authored-by: Joe Carstairs Reviewed-on: https://git.joeac.net/joeac/schist/pulls/1 Co-authored-by: Joe Carstairs Co-committed-by: Joe Carstairs --- schist_desktop_gui/src/main.rs | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'schist_desktop_gui/src/main.rs') diff --git a/schist_desktop_gui/src/main.rs b/schist_desktop_gui/src/main.rs index b836453..7e54ddb 100644 --- a/schist_desktop_gui/src/main.rs +++ b/schist_desktop_gui/src/main.rs @@ -1,18 +1,24 @@ mod config; -mod message; +mod dummy_data; +mod gui; mod settings; -mod state; +mod shortcut; +mod style; mod theme; +mod traits; mod window_settings; -mod view; -use crate::{config::Config, settings::make_settings, state::State, theme::make_theme, window_settings::make_window_settings, view::view}; +use crate::{ + config::Config, gui::Gui, settings::make_settings, theme::make_theme, + window_settings::make_window_settings, +}; fn main() -> iced::Result { let config = Config::default(); - iced::application("Schist", State::update, view) + iced::application("Schist", Gui::update, Gui::view) .settings(make_settings(&config.clone())) - .theme(|state: &State| make_theme(state)) + .subscription(gui::subscription) + .theme(make_theme) .window(make_window_settings(&config.clone())) - .run() -} \ No newline at end of file + .run_with(Gui::new) +} -- cgit v1.2.3