You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setting a transparent window to be resizable breaks transparency #48421
After the window opens, just remove all content via the devtools (delete body) so that the entire window is transparent, after the timeout the area will be black
2 -
Maybe to note: I have set my theme to dark theme, so I assume that on light theme the background (which should be transparent) would be white instead.
Thanks for working on it, @zoy-l! Does it fix this issue, too? If yes, can you add "fixes #48421" to the PR description? :)
Not sure if that is the same issue, I was able to reproduce this in 37.2.5 while in 37.2.6 the entire window loses transparency.
Might still be related though
I tested this with v39.0.0-beta.3
On win10 the window is no longer transparent but instead there is a white opaque background, on win11 it works
but on both win11 and win10 resizing does no longer work if the window is transparent
Activity
nikwen commentedon Sep 30, 2025
Thanks for reporting and for the great repro!
t57ser commentedon Sep 30, 2025
@nikwen
1 - Broken with v37.2.6 (https://github.com/electron/electron/releases/tag/v37.2.6) I assume whatever commit broke it, got ported into 38.
2 -
Maybe to note: I have set my theme to dark theme, so I assume that on light theme the background (which should be transparent) would be white instead.
3 - Seems to only happen on windows
t57ser commentedon Sep 30, 2025
My best guess would be this: #47956
I can see changes related to transparency, but I am not familiar enough with the code to clearly tell
nikwen commentedon Sep 30, 2025
Commit range: v37.2.5...v37.2.6
I'm pretty sure it was caused by #47956 / #47386.
CC @codebytere
nikwen commentedon Sep 30, 2025
Do you have a screen recording video, too, that shows how you repro it? You mentioned you had to do something in the devtools for it.
zoy-l commentedon Sep 30, 2025
wait #48378
t57ser commentedon Sep 30, 2025
@nikwen
I just delete the body so that a transparent area is shown
Once you delete the body everything should be transparent and then after the timeout kicks in and resizable is set, it will no longer be transparent
nikwen commentedon Sep 30, 2025
Thanks for working on it, @zoy-l! Does it fix this issue, too? If yes, can you add "fixes #48421" to the PR description? :)
t57ser commentedon Sep 30, 2025
Not sure if that is the same issue, I was able to reproduce this in 37.2.5 while in 37.2.6 the entire window loses transparency.
Might still be related though
t57ser commentedon Oct 14, 2025
I tested this with v39.0.0-beta.3
On win10 the window is no longer transparent but instead there is a white opaque background, on win11 it works
but on both win11 and win10 resizing does no longer work if the window is transparent
I created a new issue for this: #48554
fix: 改尺寸后补重绘 + 滑杆连发不再逐次 resize 透明窗口