MacOS apply_liquid_glass breaks window edges
Under MacOS with window-vibrancy v0.7.1, when the window get the focus, all corner edges are no longer aligned with the edge:
https://github.com/user-attachments/assets/c7e940d9-9f66-4d04-ba97-f355b18cf996
This happens with all the NSGlassEffectViewStyle (except apparently NSGlassEffectViewStyle:Clear).
Config issued as in the video:
apply_liquid_glass(&window, NSGlassEffectViewStyle::Regular, None, Some(26.0));
What happens if you change Some(26.0) to None ? I think setting a corner radius only makes sense for undecorated windows.
Changing to None with "decorations": true looks fine (ofc with the default corner radius), but if I disable decorations in the tauri conf, I get this result (regardless of the radius value):
I tried reverting to commit 990faf4 and the corners came back, so I guess the issue was introduced after that
Hmm that sucks, I really hoped we could go with the simpler implementation :/
Last thing, can you enable tauri's unstable feature flag and check if anything changes for better or for worse?
Try fixing this issue by moving the webview into the contentView of glass view: https://github.com/ahonn/window-vibrancy/commit/3d96494355340b426e15a785431f70f8ccdcf778
It works for me.
Tested https://github.com/ahonn/window-vibrancy/commit/635f6ea54f9796ae658b4d5325d82541caf45ae8 and working fine on my end with custom radius 😃