[Bug]: Maximizing a window with `backgroundMaterial:` turns it black and removes the rounded corners
Preflight Checklist
- [X] I have read the Contributing Guidelines for this project.
- [X] I agree to follow the Code of Conduct that this project adheres to.
- [X] I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
31.3.0
What operating system(s) are you using?
Windows
Operating System Version
Windows 11 23H2 22631.3958
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
I would like the acrylic effect of the window to still be applied when it is maximized.
Actual Behavior
When maximizing the window with backgroundMaterial: "acrylic" the background turns black. normal window appearance:
maximized appearance:
Testcase Gist URL
https://gist.github.com/notAperson535/475b248011fd7a22e6e7be3b5080baa5
Additional Information
To even make this window maximizable these two parameters were added to the browser window:
titleBarStyle: "hidden",
titleBarOverlay: true,
I have downloaded the gist and tried to run it on macOS
I can't see anything unless i highlighted the text
@codebytere thanks for trying to help, but the background effect only works on windows. You wouldn’t be able to tell what the issue is on any other operating system.
hi @notAperson535 - i think you meant to mention the above commenter and not me? I haven't had a moment to look at this yet.
@codebytere yes sorry you appeared at the top of the ping list
https://github.com/electron/electron/issues/38466#issuecomment-2576225294
here is a workaround