fix: windows ci

This commit is contained in:
Jonathan Kelley committed 2022-01-05 17:48:11 -05:00
1 parent 04bb41a2c4
commit ddccc51daf
1 file changed
+12 -8
+12 -8
View File
@@ -10,14 +10,18 @@ use dioxus::prelude::*;
fn main() { fn main() {
dioxus::desktop::launch_cfg(app, |c| { dioxus::desktop::launch_cfg(app, |c| {
// we can configure our primary window through the Tauri Config if cfg!(target_os = "macos") {
use dioxus::desktop::tao::platform::macos::*; // we can configure our primary window through the Tauri Config
c.with_window(|w| { use dioxus::desktop::tao::platform::macos::*;
w.with_fullsize_content_view(true) c.with_window(|w| {
.with_titlebar_buttons_hidden(false) w.with_fullsize_content_view(true)
.with_titlebar_transparent(true) .with_titlebar_buttons_hidden(false)
.with_movable_by_window_background(true) .with_titlebar_transparent(true)
}) .with_movable_by_window_background(true)
})
} else {
c
}
}); });
} }