Skip to content

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

Closed

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,

Activity

  1. moved this to 👀 Unsorted Items in 31-x-yon Aug 4, 2024
  2. added
    status/confirmed
    has-repro-gist
    on Aug 5, 2024
  3. moved this to 👀 Unsorted Items in 32-x-yon Aug 5, 2024
  4. Kiran-0205 commented on Aug 6, 2024

    @Kiran-0205

    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
  5. notAperson535 commented on Aug 6, 2024

    @notAperson535
    Author

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

  6. codebytere commented on Aug 7, 2024

    @codebytere
    Member

    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.

  7. notAperson535 commented on Aug 7, 2024

    @notAperson535
    Author

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

  8. VIXI0 commented on Jan 7, 2025

    @VIXI0

    #38466 (comment)

    here is a workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    31-x-y32-x-ybug 🪲component/BrowserWindowcomponent/wcohas-repro-gistplatform/windowsstatus/confirmed

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions