Pārlūkot izejas kodu

Transparent window means transparent WebView

Benjamin Lemelin 3 gadi atpakaļ
vecāks
revīzija
f8c78f8ca9
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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| {