-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: Support full frame transparency with Mica background material #38532
Comments
|
Do you know why it works like this? |
I've been looking into this and I've discovered that something about the |
I fiddled around more with this issue and I unfortunately am going to have to drop it for the time being. Since I wasn't getting any traction modifying Electron & Chromium, I decided to try to see if making a window like this was even possible. In the end, I wasn't able to create a window that has no title bar (window title, controls, bg), but does have a frame (the rounded corners and resizable border around the window) while also applying the Mica or Acrylic window effects. In my research I saw some possible WinRT solutions. I skipped these for the time being as I sensed they may require a bit of a refactor in Electron to get working. Also, I didn't come across any code samples that demonstrate how to crate the type of window desired here. I did see some mentions that it is possible, but ultimately no proof or demonstration. 😕 Within Windows 11, I did notice that the Task Manager's performance charts have a detail mode that collapses the window (including the title bar!) to only show the chosen chart. This makes me think it is somehow possible, but unfortunately I don't quite know how to recreate the behavior. |
Preflight Checklist
Problem Description
The Mica
backgroundMaterial
effect does not appear below the WebContents.Proposed Solution
The
backgroundMaterial
option should behave the same as when setting thevibrancy
option.vibrancy: 'medium-light'
backgroundMaterial: 'acrylic'
backgroundMaterial: 'acrylic'
+transparent: true
When
vibrancy
is set, the WebContents is transparent by default. The same should apply tobackgroundMaterial
. Settingtransparent: true
doesn't seem to be a valid workaround, but ideally should still work.The code below needs to be updated:
electron/shell/browser/api/electron_api_browser_window.cc
Lines 58 to 64 in 9ffffdb
Alternatives Considered
None.
Additional Information
Tested on:
Fiddle gist: https://gist.github.com/34cf667b21a5075d1f6fbe093d7ad7f9
The text was updated successfully, but these errors were encountered: