Skip to content

Commit

Permalink
Update blog/migrate-to-webcontentsview.md
Browse files Browse the repository at this point in the history
Co-authored-by: Charles Kerr <[email protected]>
  • Loading branch information
erickzhao and ckerr authored Dec 3, 2024
1 parent e64f498 commit 9a4f845
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions blog/migrate-to-webcontentsview.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ For the most part, each instance where your app instantiates new BrowserViews ca
:::info

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

```diff
+ this.webContentsView.setBackgroundColor("#00000000");
Expand Down

0 comments on commit 9a4f845

Please sign in to comment.