diff options
| author | Joe Carstairs <jcarstairs@scottlogic.com> | 2025-07-28 14:33:46 +0100 |
|---|---|---|
| committer | Joe Carstairs <jcarstairs@scottlogic.com> | 2025-07-28 15:58:10 +0100 |
| commit | 6531d6783cb5943564c452e3368b3b68ef0b0b0b (patch) | |
| tree | e70e2758470df504d74cb5a9373b6269d56ee1b4 /schist_desktop_gui/src/main.rs | |
| parent | 365c4b1974fb1d3361e97f64584a4f31bae98160 (diff) | |
task-010: adds Hello, world!
Diffstat (limited to 'schist_desktop_gui/src/main.rs')
| -rw-r--r-- | schist_desktop_gui/src/main.rs | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/schist_desktop_gui/src/main.rs b/schist_desktop_gui/src/main.rs index f79c691..b836453 100644 --- a/schist_desktop_gui/src/main.rs +++ b/schist_desktop_gui/src/main.rs @@ -1,2 +1,18 @@ -fn main() { -} +mod config; +mod message; +mod settings; +mod state; +mod theme; +mod window_settings; +mod view; + +use crate::{config::Config, settings::make_settings, state::State, theme::make_theme, window_settings::make_window_settings, view::view}; + +fn main() -> iced::Result { + let config = Config::default(); + iced::application("Schist", State::update, view) + .settings(make_settings(&config.clone())) + .theme(|state: &State| make_theme(state)) + .window(make_window_settings(&config.clone())) + .run() +}
\ No newline at end of file |
