-
Notifications
You must be signed in to change notification settings - Fork 42
Description
General description
What is the motivation for this suggestion.
In order to integrate better with the OS in some aspects, I wonder if it is possible to modify the underlying frame window to be blurry.
There seems be different wording depending on the OS, e.g on Windows the usual term is "Acrylic", on macOs the term is "Vibrant".
This suggestion is:
- Visual
- Behavioral
From what I've seen elsewhere, it requires a native access to acquire the native window handle in order to modify it. Mich may pose problem if the native symbol is not available, or if the API evolved in some non compatible ways.
-
Windows
One may try to invokeDwmEnableBlurBehindWindowhttps://github.com/krlvm/SwingAcrylic
https://stackoverflow.com/questions/22027247/java-setting-background-from-jar-and-making-it-transparent -
macOs
It seems the magic happens withNSVisualEffectViewand setting the blending mode to something likeNSVisualEffectBlendingModeBehindWindow, which seems to pack some more effects (like corner rounding, whether title bar is vibrant too).
https://github.com/wailsapp/wails/blob/801cf3c84ae5c07c1ab31b56e420af4861992d14/v2/internal/frontend/desktop/darwin/WailsContext.m#L175-L184
https://github.com/lukakerr/NSWindowStyles
For Linux I have no idea how this could work, it might depend on Wayland (I don't think this can work on X11) and which compositor is available.
For visual suggestions
How do you want the result to look. If possible provide examples or provide a detailed description.
-
Windows
As I don't have a Windows OS I'm just copying the image from (krlvm/SwingAcrylic)

For behavioral suggestions
Please provide a detailed description of what should happen at what point.
Additional context
Add any other context or screenshots about the feature request here.
