From 27ad451bd89c727ae6d81716ea593e9ab2c1fcb9 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 9 Apr 2025 14:10:05 +0300 Subject: [PATCH] feat(electron): support transparency on Linux if background effects are enabled --- src/services/window.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/services/window.ts b/src/services/window.ts index f5c7857a1..91bedb40c 100644 --- a/src/services/window.ts +++ b/src/services/window.ts @@ -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;