Transparent window has white background
See original GitHub issue- Electron.NET Version 23.6.1
- .NET Core Version 7.0
- Node.js Version 18.12
- Target: Windows
I have created a window like so:
var window = await Electron.WindowManager.CreateWindowAsync(new BrowserWindowOptions()
{
Resizable = false,
Fullscreen = true,
Minimizable = false,
Movable = false,
Frame = false,
Transparent = true,
BackgroundColor = "#00000000",
});
window.SetAlwaysOnTop(true, OnTopLevel.screenSaver);
Expecting the background the be transparent, but instead it is white. (The page itself only contains one <p>
element, nothing more)
I tried adding some delay before calling CreateWindowAsync
, as I saw it solved the issue for some people using normal Electron, but that did not help either.
Any idea how can I fix this?
Issue Analytics
- State:
- Created 6 months ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Transparent window has white background window #2170
Hi, I've some issue with the transparent window, my code is: win = new BrowserWindow({ width: 100, height: 50, transparent: true, ...
Read more >Transparent image showing up with white background on ...
jpg just gives a white background, but it shows in Files as a Black ... Clicking on the top bar of the window...
Read more >Media videos have a white transparent background
Media videos have a white transparent background. Hey, so I have an error. It started with just the films and movie app and...
Read more >Make a non-frameless Electron window have a transparent ...
The window still have the default white background. Is it possible to have a transparent window in Electron without it being frameless?
Read more >Windows 10 transparent Icons on a white background
I've noticed that icons that are supposed to have a transparent background have a white background instead. enter image description here. I've ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@GregorBiswanger Yes! That’s it. Your solution works perfectly 👌🏻
I built a Blazor server app and it works without any problems. See the screenshot.
For this I changed the
site.css
in thewwwroot/css
directory:This is my Electron.NET startup code:
did you make it?