Skip to content

Build your personal knowledge base with Trilium Notes

chore(client): address requested changes

Elian Doran51131433d321
diff --git a/apps/client/src/desktop.ts b/apps/client/src/desktop.ts
index 3917dda84c..bba3b6b90b 100644
--- a/apps/client/src/desktop.ts
+++ b/apps/client/src/desktop.ts
@@ -99,7 +99,7 @@ function initFullScreenDetection(currentWindow: Electron.BrowserWindow) {
}
function initTransparencyEffects(style: CSSStyleDeclaration, currentWindow: Electron.BrowserWindow) {
- const material = style.getPropertyValue("--background-material");
+ const material = style.getPropertyValue("--background-material").trim();
if (window.glob.platform === "win32") {
const bgMaterialOptions = ["auto", "none", "mica", "acrylic", "tabbed"] as const;
const foundBgMaterialOption = bgMaterialOptions.find((bgMaterialOption) => material === bgMaterialOption);
diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.css
index 1dd2432f72..1b131a6a2b 100644
--- a/apps/client/src/stylesheets/theme-next/shell.css
+++ b/apps/client/src/stylesheets/theme-next/shell.css
@@ -41,7 +41,7 @@ body.mobile {
/* #region Mica */
/* Quirk: --background-material is read before "theme-supports-background-effects" class
- * is applied. Apply the matterial even if the theme doesn't support it. */
+ * is applied. Apply the material even if the theme doesn't support it. */
body.background-effects.platform-win32 {
&.layout-vertical {
--background-material: mica;