Просмотр исходного кода

Transparent window means transparent WebView

Benjamin Lemelin 3 лет назад
Родитель
Сommit
f8c78f8ca9
1 измененных файлов с 1 добавлено и 0 удалено
  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| {