From 51131433d3219794c7205d643dd16f06e133b902 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 27 Jan 2026 15:56:57 +0200 Subject: [PATCH] chore(client): address requested changes --- apps/client/src/desktop.ts | 2 +- apps/client/src/stylesheets/theme-next/shell.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/desktop.ts b/apps/client/src/desktop.ts index 3917dda84..bba3b6b90 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 1dd2432f7..1b131a6a2 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;