diff --git a/.changes/windows-transparency.md b/.changes/windows-transparency.md new file mode 100644 index 000000000..f9a82f88e --- /dev/null +++ b/.changes/windows-transparency.md @@ -0,0 +1,5 @@ +--- +"wry": patch +--- + +Fix transparency on Windows diff --git a/src/webview/webview2/mod.rs b/src/webview/webview2/mod.rs index 6a81649e6..35d216af3 100644 --- a/src/webview/webview2/mod.rs +++ b/src/webview/webview2/mod.rs @@ -714,7 +714,7 @@ pub fn set_background_color( background_color: RGBA, ) -> webview2_com::Result<()> { let mut color = background_color; - if !is_windows_7() || color.3 != 0 { + if is_windows_7() || color.3 != 0 { color.3 = 255; }