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
feat(mica): apply to vertical layout as well
Elian Doraned98d0ce495a
diff --git a/src/public/stylesheets/theme-next.css b/src/public/stylesheets/theme-next.cssindex 9a00a5b274..2c23997c2d 100644--- a/src/public/stylesheets/theme-next.css+++ b/src/public/stylesheets/theme-next.css@@ -426,7 +426,8 @@ body.background-effects #launcher-pane .launcher-button {background-color: transparent;}-body.background-effects #horizontal-main-container {+body.layout-vertical #rest-pane,+body.layout-horizontal.background-effects #horizontal-main-container {background-color: var(--root-background);}/* #endregion */diff --git a/src/services/window.ts b/src/services/window.tsindex a7cf1ff5ae..142ea3cd3b 100644--- a/src/services/window.ts+++ b/src/services/window.ts@@ -133,7 +133,8 @@ function getWindowExtraOpts() {// Window effects (Mica)// TODO: Apply only on Windows and allow the user to choose whether to activate it or not.- extraOpts.backgroundMaterial = "tabbed";+ const isHorizontalLayout = (optionService.getOption("layoutOrientation") === "horizontal");+ extraOpts.backgroundMaterial = isHorizontalLayout ? "tabbed" : "mica";return extraOpts;}