feat(electron): support transparency on Linux if background effects are enabled

This commit is contained in:
Elian Doran 2025-04-09 14:10:05 +03:00
parent c603efb44b
commit 27ad451bd8
No known key found for this signature in database

View File

@ -212,8 +212,15 @@ function getWindowExtraOpts() {
}
// Window effects (Mica)
if (optionService.getOptionBool("backgroundEffects") && isWindows) {
extraOpts.backgroundMaterial = "auto";
if (optionService.getOptionBool("backgroundEffects")) {
if (isMac) {
// Vibrancy not yet supported.
} else if (isWindows) {
extraOpts.backgroundMaterial = "auto";
} else {
// Linux or other platforms.
extraOpts.transparent = true;
}
}
return extraOpts;