Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(desktop): background effects interferes with native title bar
Elian Doranc3b4c2f7d468
diff --git a/apps/server/src/services/window.ts b/apps/server/src/services/window.tsindex 39c6093646..8be3f56a5a 100644--- a/apps/server/src/services/window.ts+++ b/apps/server/src/services/window.ts@@ -237,18 +237,19 @@ function getWindowExtraOpts() {// Linux or other platforms.extraOpts.frame = false;}- }- // Window effects (Mica)- if (optionService.getOptionBool("backgroundEffects")) {- if (isMac) {- extraOpts.transparent = true;- extraOpts.visualEffectState = "active";- } else if (isWindows) {- extraOpts.backgroundMaterial = "auto";- } else {- // Linux or other platforms.- extraOpts.transparent = true;+ // Window effects (Mica on Windows and Vibrancy on macOS)+ // These only work if native title bar is not enabled.+ if (optionService.getOptionBool("backgroundEffects")) {+ if (isMac) {+ extraOpts.transparent = true;+ extraOpts.visualEffectState = "active";+ } else if (isWindows) {+ extraOpts.backgroundMaterial = "auto";+ } else {+ // Linux or other platforms.+ extraOpts.transparent = true;+ }}}