summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-04-09 00:29:34 +0200
committerpml68 <contact@pml68.dev>2025-04-15 23:51:45 +0200
commit941eb51e043b6b847089130625c2df10b0674154 (patch)
tree81864cecc1f20de24be4ce05016dc0142797dcff /src/main.rs
parentfeat(material_theme): impl `menu::Catalog`, change `dialog::Catalog` impl (diff)
downloadiced-builder-941eb51e043b6b847089130625c2df10b0674154.tar.gz
feat: update `iced`, make designer view more usable
Diffstat (limited to '')
-rw-r--r--src/main.rs18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs
index 3895dbc..d58329a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -54,12 +54,18 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
rt.block_on(Config::load())
};
- iced::application(App::title, App::update, App::view)
- .font(icon::FONT)
- .theme(|state| state.theme.value().clone())
- .subscription(App::subscription)
- .antialiasing(true)
- .run_with(move || App::new(config_load))?;
+ iced::application(
+ move || App::new(config_load.clone()),
+ App::update,
+ App::view,
+ )
+ .title(App::title)
+ .font(icon::FONT)
+ .theme(|state| state.theme.value().clone())
+ .subscription(App::subscription)
+ .antialiasing(true)
+ .run()?;
+
Ok(())
}