Skip to content

Commit

Permalink
fix: fix transparency on Windows, closes #692
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Sep 15, 2022
1 parent 4aa109c commit e31cd0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/windows-transparency.md
@@ -0,0 +1,5 @@
---
"wry": patch
---

Fix transparency on Windows
2 changes: 1 addition & 1 deletion src/webview/webview2/mod.rs
Expand Up @@ -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;
}

Expand Down

0 comments on commit e31cd0a

Please sign in to comment.