diff --git a/src/Cargo.lock b/src/Cargo.lock index ec130dd..f35a50b 100644 --- a/src/Cargo.lock +++ b/src/Cargo.lock @@ -1351,7 +1351,7 @@ dependencies = [ [[package]] name = "home-video-blue-extractinator" -version = "0.1.0" +version = "0.1.3" dependencies = [ "base64 0.21.5", "dioxus", diff --git a/src/src/main.rs b/src/src/main.rs index 4a565d9..d7e33c8 100644 --- a/src/src/main.rs +++ b/src/src/main.rs @@ -8,7 +8,21 @@ use core::cmp::Ordering; use std::str::FromStr; fn main() { - dioxus_desktop::launch(App); + dioxus_desktop::launch_cfg(App, dioxus_desktop::Config::new() + .with_window(dioxus_desktop::WindowBuilder::new() + .with_title("home-video-blue-extractinator") + .with_menu({ + let mut menu = dioxus_desktop::tao::menu::MenuBar::new(); + + let mut app_menu = dioxus_desktop::tao::menu::MenuBar::new(); + app_menu.add_native_item(dioxus_desktop::tao::menu::MenuItem::Minimize); + app_menu.add_native_item(dioxus_desktop::tao::menu::MenuItem::Quit); + + menu.add_submenu("&home-video-blue-extractinator", true, app_menu); + menu + }), + ), + ); } // define a component that renders a div with the text "Hello, world!"