Update vulnerable dependencies and migrate to Iced 0.14.
This commit is contained in:
@@ -27,14 +27,19 @@ fn main() -> anyhow::Result<()> {
|
||||
iced::window::icon::from_file_data(include_bytes!("../assets/app-icons/bds.png"), None)
|
||||
.expect("bundled application icon must be valid");
|
||||
|
||||
iced::application("bDS", BdsApp::update, BdsApp::view)
|
||||
iced::application(BdsApp::new, BdsApp::update, BdsApp::view)
|
||||
.title("bDS")
|
||||
.subscription(BdsApp::subscription)
|
||||
.theme(|_| inputs::app_theme())
|
||||
.theme(app_theme)
|
||||
.window(desktop_window_settings(Some(icon)))
|
||||
.run_with(BdsApp::new)?;
|
||||
.run()?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn app_theme(_: &BdsApp) -> iced::Theme {
|
||||
inputs::app_theme()
|
||||
}
|
||||
|
||||
fn desktop_window_settings(icon: Option<iced::window::Icon>) -> iced::window::Settings {
|
||||
iced::window::Settings {
|
||||
size: iced::Size::new(1200.0, 800.0),
|
||||
|
||||
Reference in New Issue
Block a user