Quick fixes for S&T #27
@@ -6,8 +6,10 @@ pub fn main() {
|
|||||||
dioxus::LaunchBuilder::new()
|
dioxus::LaunchBuilder::new()
|
||||||
.with_cfg(desktop! {
|
.with_cfg(desktop! {
|
||||||
dioxus::desktop::Config::new()
|
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_background_color((0, 0, 0, 255))
|
||||||
.with_custom_head("<style>html, body { background: black; } #main { visibility: hidden; }</style>".into())
|
.with_custom_head("<style>html, body { background: black; } #main { visibility: hidden; }</style>".into())
|
||||||
|
.with_disable_context_menu(cfg!(not(debug_assertions)))
|
||||||
.with_window(
|
.with_window(
|
||||||
dioxus::desktop::WindowBuilder::new()
|
dioxus::desktop::WindowBuilder::new()
|
||||||
.with_title("Mumble Web 2")
|
.with_title("Mumble Web 2")
|
||||||
|
|||||||
Reference in New Issue
Block a user