Skip to content

Commit 9a4f845

Browse files
erickzhaockerr
andauthored
Update blog/migrate-to-webcontentsview.md
Co-authored-by: Charles Kerr <[email protected]>
1 parent e64f498 commit 9a4f845

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

blog/migrate-to-webcontentsview.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ For the most part, each instance where your app instantiates new BrowserViews ca
4242
:::info
4343

4444
By default, `WebContentsView` instantiates with a white background, while `BrowserView` instantiates with a transparent background.
45-
If you used to use the default transparent background setting with your `BrowserView` instances, you will need to set the
46-
background colour manually with a RGBA hex value with the alpha (opaqueness) channel set to `00`.
45+
To get a transparent background in `WebContentsView`, set its background color to an RGBA hex value with an alpha (opaqueness) channel set to `00`:
4746

4847
```diff
4948
+ this.webContentsView.setBackgroundColor("#00000000");

0 commit comments

Comments
 (0)