electron icon indicating copy to clipboard operation
electron copied to clipboard

[Bug]: Maximizing a window with `backgroundMaterial:` turns it black and removes the rounded corners

Open notAperson535 opened this issue 1 year ago • 4 comments

Preflight Checklist

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: image maximized appearance: image

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,

notAperson535 avatar Aug 04 '24 15:08 notAperson535

I have downloaded the gist and tried to run it on macOS

Screenshot 2024-08-06 at 10 28 19 PM

I can't see anything unless i highlighted the text

Screenshot 2024-08-06 at 10 28 55 PM

Kiran-0205 avatar Aug 06 '24 17:08 Kiran-0205

@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.

notAperson535 avatar Aug 06 '24 21:08 notAperson535

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 avatar Aug 07 '24 15:08 codebytere

@codebytere yes sorry you appeared at the top of the ping list

notAperson535 avatar Aug 07 '24 19:08 notAperson535

https://github.com/electron/electron/issues/38466#issuecomment-2576225294

here is a workaround

VIXI0 avatar Jan 07 '25 21:01 VIXI0