From a2d41247fe9519fd3efeaa88398855c1cbe2bc66 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 15 Sep 2025 18:35:04 +0300 Subject: [PATCH] fix(desktop): background effects breaking if native title bar is enabled --- apps/server/src/routes/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/server/src/routes/index.ts b/apps/server/src/routes/index.ts index 528e9e83e..69daeb680 100644 --- a/apps/server/src/routes/index.ts +++ b/apps/server/src/routes/index.ts @@ -31,6 +31,7 @@ function index(req: Request, res: Response) { const theme = options.theme; const themeNote = attributeService.getNoteWithLabel("appTheme", theme); + const nativeTitleBarVisible = options.nativeTitleBarVisible === "true"; res.render(view, { device: view, @@ -41,8 +42,8 @@ function index(req: Request, res: Response) { layoutOrientation: options.layoutOrientation, platform: process.platform, isElectron, - hasNativeTitleBar: isElectron && options.nativeTitleBarVisible === "true", - hasBackgroundEffects: isElectron && isWindows11 && options.backgroundEffects === "true", + hasNativeTitleBar: isElectron && nativeTitleBarVisible, + hasBackgroundEffects: isElectron && isWindows11 && !nativeTitleBarVisible, mainFontSize: parseInt(options.mainFontSize), treeFontSize: parseInt(options.treeFontSize), detailFontSize: parseInt(options.detailFontSize),