From e5e27d2c265307494989a32b038184d03cfb1e2b Mon Sep 17 00:00:00 2001 From: Henry Su Date: Mon, 26 Oct 2026 13:52:48 -0500 Subject: [PATCH] feat(app): use sidebar vibrancy and a unified title bar on macOS Move the traffic lights to the native 52pt unified-toolbar position (circle at 20, 20), request the sidebar material for the main window, and grant start-dragging so toolbar drag regions can move the window. The sidebar material stays hidden until the tauri crate enables the macos-private-api feature and the window sets transparent: true. Only tauri.conf.json may change in this PR, so those steps are left out. --- src-tauri/tauri.conf.json | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 1372d38..afcc586 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -21,13 +21,26 @@ "titleBarStyle": "Overlay", "hiddenTitle": true, "trafficLightPosition": { - "x": 16, - "y": 11 + "x": 19, + "y": 24 + }, + "windowEffects": { + "effects": ["sidebar"], + "state": "followsWindowActiveState" } } ], "security": { - "csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self' ipc: http://ipc.localhost; object-src 'none'; base-uri 'self'; frame-ancestors 'none'" + "csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self' ipc: http://ipc.localhost; object-src 'none'; base-uri 'self'; frame-ancestors 'none'", + "capabilities": [ + "default", + { + "identifier": "window-drag", + "description": "Lets toolbar areas marked data-tauri-drag-region move the window.", + "windows": ["main"], + "permissions": ["core:window:allow-start-dragging"] + } + ] } }, "bundle": {