From cd1aed2b9a4cfbf5458a0feeaece6876b25f2dca Mon Sep 17 00:00:00 2001 From: Liam Warfield Date: Sun, 29 Mar 2026 09:35:13 -0600 Subject: [PATCH 1/3] Desktop now has minimum width. I just played around until I found something that looks right. Before there'd be really degen behavior if you squished the window too much. --- gui/src/main.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gui/src/main.rs b/gui/src/main.rs index a4185c6..2ca9538 100644 --- a/gui/src/main.rs +++ b/gui/src/main.rs @@ -1,6 +1,16 @@ +use dioxus::prelude::*; use mumble_web2_gui::{app, imp::Platform, imp::PlatformInterface as _}; pub fn main() { Platform::init_logging(); - dioxus::launch(app::app); + dioxus::LaunchBuilder::new() + .with_cfg(desktop! { + dioxus::desktop::Config::new().with_window( + dioxus::desktop::WindowBuilder::new() + .with_title("Mumble Web 2") + .with_min_inner_size(dioxus::desktop::LogicalSize::new(600.0, 300.0)) + .with_inner_size(dioxus::desktop::LogicalSize::new(900.0, 700.0)), + ) + }) + .launch(app::app); } -- 2.52.0 From d12b9b891b5aab0faa0dc48e76bfb5d33fa9bab1 Mon Sep 17 00:00:00 2001 From: Liam Warfield Date: Sun, 29 Mar 2026 09:59:59 -0600 Subject: [PATCH 2/3] Remove white flash on desktop I ask claude for some other suggestions for things to add here, and I agree with 2 of them: - Remove a white flash by setting a default collor of the window as black. - Explicitly set the maximized state. --- gui/assets/main.scss | 1 + gui/src/main.rs | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gui/assets/main.scss b/gui/assets/main.scss index f6054ab..4584e68 100644 --- a/gui/assets/main.scss +++ b/gui/assets/main.scss @@ -16,6 +16,7 @@ body { } #main { + visibility: visible; height: 100vh; display: flex; flex-direction: column; diff --git a/gui/src/main.rs b/gui/src/main.rs index 2ca9538..675a1ca 100644 --- a/gui/src/main.rs +++ b/gui/src/main.rs @@ -5,11 +5,15 @@ pub fn main() { Platform::init_logging(); dioxus::LaunchBuilder::new() .with_cfg(desktop! { - dioxus::desktop::Config::new().with_window( + dioxus::desktop::Config::new() + .with_background_color((0, 0, 0, 255)) + .with_custom_head("".into()) + .with_window( dioxus::desktop::WindowBuilder::new() .with_title("Mumble Web 2") .with_min_inner_size(dioxus::desktop::LogicalSize::new(600.0, 300.0)) - .with_inner_size(dioxus::desktop::LogicalSize::new(900.0, 700.0)), + .with_inner_size(dioxus::desktop::LogicalSize::new(900.0, 700.0)) + .with_maximized(false), ) }) .launch(app::app); -- 2.52.0 From ee7dc2f310558f3c06ef58a0e23856edf4299de0 Mon Sep 17 00:00:00 2001 From: Liam Warfield Date: Sun, 29 Mar 2026 10:05:49 -0600 Subject: [PATCH 3/3] Remove right click menu in release builds. This makes it so that release builds don't let the right click menu popup on release builds. This is still allowed on debug builds so that things like "Inspect Element" are easy to use there. --- gui/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/src/main.rs b/gui/src/main.rs index 675a1ca..58ce7cf 100644 --- a/gui/src/main.rs +++ b/gui/src/main.rs @@ -6,8 +6,10 @@ pub fn main() { dioxus::LaunchBuilder::new() .with_cfg(desktop! { dioxus::desktop::Config::new() + // Reduce white flash on startup by setting background color and hiding main element .with_background_color((0, 0, 0, 255)) .with_custom_head("".into()) + .with_disable_context_menu(cfg!(not(debug_assertions))) .with_window( dioxus::desktop::WindowBuilder::new() .with_title("Mumble Web 2") -- 2.52.0