You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request]: Support full frame transparency with Mica background material #38532
When vibrancy is set, the WebContents is transparent by default. The same should apply to backgroundMaterial. Setting transparent: true doesn't seem to be a valid workaround, but ideally should still work.
I've been looking into this and I've discovered that something about the remove_standard_frame option in views is causing the background to be non-translucent. Still investigating...
This is what I have on my clavin/frameless-bg-mat branch with remove_standard_frame set to false:
Obviously, it has a frame, which is not great, but turning on the option causes the window to no longer be translucent, strangely. Still, it's progress 😄
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.
Activity
michalzaq12 commentedon Jun 1, 2023
backgroundMaterialworks well withtransparent: true, but window cannot be framelessLITzman commentedon Jun 13, 2023
Do you know why it works like this?
clavin commentedon Jun 15, 2023
I've been looking into this and I've discovered that something about the
remove_standard_frameoption inviewsis causing the background to be non-translucent. Still investigating...clavin commentedon Jun 15, 2023
This is what I have on my
clavin/frameless-bg-matbranch withremove_standard_frameset to false:Obviously, it has a frame, which is not great, but turning on the option causes the window to no longer be translucent, strangely. Still, it's progress 😄
clavin commentedon Jun 27, 2023
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.