Open Earthquake125 opened 3 weeks ago
Looks like we can achieve it by setting vibrancy: "under-window"
and visualEffectState: "followWindow"
while creating window when transparency enabled in settings.
src/main/mainWindow.ts
:
...(transparent && {
transparent: true,
- backgroundColor: "#00000000"
+ backgroundColor: "#00000000",
+ vibrancy: "under-window",
+ visualEffectState: "followWindow"
}),
Need further testing. I will get access to MacOS device tomorrow to try it and PR.
vencord already has vibrancy. it just needs to be ported
would be nice to do something like for kde as well
not really possible. this feature is powered by a macOS api that only exists there. you can combine the vesktop transparency feature with a compositor like picom to achieve something similar
Looks like we can achieve it by setting
vibrancy: "under-window"
andvisualEffectState: "followWindow"
while creating window when transparency enabled in settings.src/main/mainWindow.ts
:...(transparent && { transparent: true, - backgroundColor: "#00000000" + backgroundColor: "#00000000", + vibrancy: "under-window", + visualEffectState: "followWindow" }),
Need further testing. I will get access to MacOS device tomorrow to try it and PR.
Works perfectly except for window borders disappearing, but this could be an electron bug as it happens without Vibrancy as well as Vencord with it. a workaround is to fullscreen and un-fullscreen
Motivation
Transparency on Vesktop on macOS simply makes the window transparent.
Solution
Instead, I believe a Vibrancy/blur effect should be added, like Vencord on Discord:
Alternatives
N/A
Request Agreement