Skip to content

Build your personal knowledge base with Trilium Notes

fix(desktop): background effects breaking if native title bar is enabled

Elian Dorana2d41247fe95
diff --git a/apps/server/src/routes/index.ts b/apps/server/src/routes/index.ts
index 528e9e83ee..69daeb6804 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),