Skip to content

Commit

Permalink
Make browserWindow of splashScreen transparent (#13699)
Browse files Browse the repository at this point in the history
Currently an image with a transparent background is rendered with a white background.
This looks weird and is not the expected behavior when a transparent image is used.
With this change the browserWindow is set to transparent, so that the background is not rendered.
If adoptors want a white background they can simply use an image with a white background (or any other color).
  • Loading branch information
sgraband authored May 10, 2024
1 parent b9dcbe7 commit a227791
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/electron-main/electron-main-application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ export class ElectronMainApplication {
...splashScreenBounds,
frame: false,
alwaysOnTop: true,
show: false
show: false,
transparent: true,
});

if (this.isShowWindowEarly()) {
Expand Down

0 comments on commit a227791

Please sign in to comment.