Skip to content

Conversation

clavin
Copy link
Member

@clavin clavin commented Sep 1, 2023

Description of Change

  • Adds a patch that lets frameless, translucent windows (i.e. mica, acryllic windows) become "activated", which is necessary for their effects
  • Automatically makes windows created with vibrancy/translucency effects have transparent background colors
  • Removes some caption styling on translucent window effects on Windows when setting background material

Fixes #38532

Checklist

Release Notes

Notes: Fixed Windows Mica/Acrylic background material effects on frameless windows.

@clavin clavin requested a review from a team as a code owner September 1, 2023 03:11
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Sep 1, 2023
@clavin clavin added target/27-x-y PR should also be added to the "27-x-y" branch. semver/patch backwards-compatible bug fixes labels Sep 5, 2023
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Sep 6, 2023
with translucent background materials to become activated.

This patch likely can't be upstreamed as-is, as Chromium doesn't have
this use case in mind currently.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for a simple patch like this there is a chance upstreaming it, read the change log of the file and find the maintainer who has done related modifications, and ask them to review.

Copy link
Member

@VerteDinde VerteDinde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this on Windows - the transparency seems to be working as expected. I'm also fine merging this as is and potentially upstreaming the patch later

@codebytere codebytere merged commit d182794 into main Sep 11, 2023
@codebytere codebytere deleted the clavin/frameless-bg-mat branch September 11, 2023 12:51
@release-clerk
Copy link

release-clerk bot commented Sep 11, 2023

Release Notes Persisted

Fixed Windows Mica / Acrylic background material effects on frameless windows.

@trop
Copy link
Contributor

trop bot commented Sep 11, 2023

I have automatically backported this PR to "27-x-y", please check out #39802

@trop trop bot added in-flight/27-x-y merged/27-x-y PR was merged to the "27-x-y" branch. and removed target/27-x-y PR should also be added to the "27-x-y" branch. in-flight/27-x-y labels Sep 11, 2023
@fzf404
Copy link

fzf404 commented Sep 21, 2023

Great, I hope to merge into Electron 26 soon.

@michalzaq12
Copy link
Contributor

@clavin #39959

MrHuangJser pushed a commit to MrHuangJser/electron that referenced this pull request Dec 11, 2023
* fix: backgroundMaterial works with frameless

* TODO: fix frameless mica/acrylic windows

* update caption color appropriately

* set background color properly

* refactor translucency method

* actualization
@codebytere codebytere mentioned this pull request Feb 4, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/27-x-y PR was merged to the "27-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Support full frame transparency with Mica background material
8 participants