New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BrowserWindow#setBackgroundColor doesn't work #26842
Comments
Here's what I'm seeing (Electron 11.0.3, macOS 11.1)
Transparency and Vibrancy are off. |
For us it works the first time we set it but not afterwards. Both 11.4.0 and 12.0.10. |
@nornagon @zcbenz @jcarpenter @fabiospampinato @charlag |
I haven't looked into it again, whatever flag may or may not conflict with it I need it so I can't just toggle it to have the background color working. |
I'm seeing the same behavior @charlag -- though I am able to get one set to go through right after creating my browserWindow (maybe sets before show() go through?) |
Confirmed also for VSCode. //cc @deepak1556 |
I think this actually works starting with Electron 15 from my testing with a Fiddle. |
This is fixed by #30777, please check |
Issue Details
Expected Behavior
It should work.
Actual Behavior
It doesn't do anything, as far as I can tell. When resizing the window like a lunatic actually sometimes you can kind of see the new background color, but it's as if it's applied only to the portion of the window the app doesn't occupy yet.
By the way vibrancy isn't working for me either, perhaps the two issues are related.
To Reproduce
Fiddle: https://gist.github.com/753fe49cec47bfa46e06cd77d16053b0
The text was updated successfully, but these errors were encountered: