Browse Source

Transparent window means transparent WebView

Benjamin Lemelin 3 năm trước cách đây
mục cha
commit
f8c78f8ca9
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      packages/desktop/src/lib.rs

+ 1 - 0
packages/desktop/src/lib.rs

@@ -177,6 +177,7 @@ pub fn launch_with_props<P: 'static + Send>(
 
                 let mut webview = WebViewBuilder::new(window)
                     .unwrap()
+                    .with_transparent(cfg.window.window.transparent)
                     .with_url("dioxus://index.html/")
                     .unwrap()
                     .with_rpc_handler(move |_window: &Window, req: RpcRequest| {