Skip to content

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

@notAperson535

Description

@notAperson535

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,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions