diff --git a/Cargo.toml b/Cargo.toml index 067e786..6e6172a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,17 @@ strip = "none" debug-assertions = true incremental = true +# to be used in case if you don't want debug features +# (faster incremental compilation, about 15x smaller binary size compared to dev) +# --profile=plain +[profile.plain] +inherits = "dev" +opt-level = 1 +debug = false +strip = true +debug-assertions = true +incremental = true + [profile.release-with-debug] inherits = "release" debug = true diff --git a/dash-frontend/src/frontend.rs b/dash-frontend/src/frontend.rs index 9c2e80f..6e7646e 100644 --- a/dash-frontend/src/frontend.rs +++ b/dash-frontend/src/frontend.rs @@ -12,7 +12,7 @@ use wgui::{ parser::{Fetchable, ParseDocumentParams, ParserState}, task::Tasks, widget::{label::WidgetLabel, rectangle::WidgetRectangle}, - windowing::{WguiWindow, WguiWindowParams, WguiWindowParamsExtra, WguiWindowPlacement}, + windowing::window::{WguiWindow, WguiWindowParams, WguiWindowParamsExtra, WguiWindowPlacement}, }; use wlx_common::{audio, dash_interface::BoxDashInterface, timestep::Timestep}; @@ -379,13 +379,14 @@ impl Frontend { fn action_show_audio_settings(&mut self) -> anyhow::Result<()> { self.window_audio_settings.open(&mut WguiWindowParams { - globals: self.globals.clone(), + globals: &self.globals, position: Vec2::new(64.0, 64.0), layout: &mut self.layout, - title: Translation::from_translation_key("AUDIO.SETTINGS"), extra: WguiWindowParamsExtra { fixed_width: Some(400.0), placement: WguiWindowPlacement::BottomLeft, + close_if_clicked_outside: true, + title: Some(Translation::from_translation_key("AUDIO.SETTINGS")), ..Default::default() }, })?; diff --git a/uidev/assets/gui/various_widgets.xml b/uidev/assets/gui/various_widgets.xml index d13a5e0..f49cd79 100644 --- a/uidev/assets/gui/various_widgets.xml +++ b/uidev/assets/gui/various_widgets.xml @@ -25,8 +25,8 @@ + +