Skip to content

Build your personal knowledge base with Trilium Notes

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

Elian Doran27ad451bd89c
diff --git a/src/services/window.ts b/src/services/window.ts
index f5c7857a14..91bedb40c2 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;