Skip to content

Build your personal knowledge base with Trilium Notes

fix(mica): mica flicker when loading classic theme

Elian Doran5d07c3049deb
diff --git a/src/services/window.ts b/src/services/window.ts
index 1555d79ae1..f15958676e 100644
--- a/src/services/window.ts
+++ b/src/services/window.ts
@@ -132,9 +132,9 @@ function getWindowExtraOpts() {
}
// Window effects (Mica)
- // TODO: Deduplicate with src/public/app/desktop.js#initTransparencyEffects
- const isHorizontalLayout = (optionService.getOption("layoutOrientation") === "horizontal");
- extraOpts.backgroundMaterial = isHorizontalLayout ? "tabbed" : "mica";
+ if (isWindows) {
+ extraOpts.backgroundMaterial = "auto";
+ }
return extraOpts;
}