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
refactor(mica): remove background effects system
Elian Doran407448476bcb
diff --git a/src/public/stylesheets/theme-next.css b/src/public/stylesheets/theme-next.cssindex 10f50c9b49..f9aa911017 100644--- a/src/public/stylesheets/theme-next.css+++ b/src/public/stylesheets/theme-next.css@@ -413,7 +413,7 @@ body.layout-horizontal {}/* #region Mica */-body.background-effects {+body.electron.platform-win32 {--launcher-pane-background-color: rgba(255, 255, 255, 0.09);--tab-background-color: transparent;--active-tab-background-color: var(--launcher-pane-background-color);@@ -421,21 +421,18 @@ body.background-effects {--native-titlebar-background: #00000000;}-body.background-effects,-body.background-effects #root-widget {- background: transparent !important;-}--body.background-effects.layout-vertical {+body.electron.platform-win32.layout-vertical {--left-pane-background-color: transparent;--launcher-pane-background-color: rgba(255, 255, 255, 0.055);}-body.background-effects #launcher-pane .launcher-button {- background-color: transparent;+body.electron.platform-win32,+body.electron.platform-win32 #root-widget,+body.electron.platform-win32 #launcher-pane .launcher-button {+ background: transparent !important;}-body.background-effects.layout-horizontal #horizontal-main-container {+body.electron.platform-win32.layout-horizontal #horizontal-main-container {background-color: var(--root-background);}/* #endregion */diff --git a/src/routes/index.ts b/src/routes/index.tsindex 5c8f39904c..a37965b4cd 100644--- a/src/routes/index.ts+++ b/src/routes/index.ts@@ -37,7 +37,6 @@ function index(req: Request, res: Response) {platform: process.platform,isElectron,hasNativeTitleBar: (isElectron && options.nativeTitleBarVisible === "true"),- hasBackgroundEffects: true, // TODO: Replace with optionmainFontSize: parseInt(options.mainFontSize),treeFontSize: parseInt(options.treeFontSize),detailFontSize: parseInt(options.detailFontSize),diff --git a/src/views/desktop.ejs b/src/views/desktop.ejsindex 64c851b1bb..29afdcfd35 100644--- a/src/views/desktop.ejs+++ b/src/views/desktop.ejs@@ -6,7 +6,7 @@<link rel="manifest" crossorigin="use-credentials" href="manifest.webmanifest"><title>TriliumNext Notes</title></head>-<body class="desktop heading-style-<%= headingStyle %> layout-<%= layoutOrientation %> platform-<%= platform %> <%= isElectron ? 'electron' : '' %> <%= hasNativeTitleBar ? 'native-titlebar' : '' %> <%= hasBackgroundEffects ? 'background-effects' : '' %>">+<body class="desktop heading-style-<%= headingStyle %> layout-<%= layoutOrientation %> platform-<%= platform %> <%= isElectron ? 'electron' : '' %> <%= hasNativeTitleBar ? 'native-titlebar' : '' %>"><noscript><%= t("javascript-required") %></noscript><script>@@ -38,7 +38,6 @@appPath: "<%= appPath %>",platform: "<%= platform %>",hasNativeTitleBar: <%= hasNativeTitleBar %>,- hasBackgroundEffects: <%= hasBackgroundEffects %>,TRILIUM_SAFE_MODE: <%= !!process.env.TRILIUM_SAFE_MODE %>};</script>