From 52fd0bead3df755d3b9eaff99647f5b5a189736c Mon Sep 17 00:00:00 2001 From: kev1n77 Date: Mon, 7 Sep 2026 10:50:11 +0800 Subject: [PATCH] fix(desktop): align macOS traffic lights with toolbar icons --- src/apps/desktop/src/appearance.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/desktop/src/appearance.rs b/src/apps/desktop/src/appearance.rs index 8f8403d43f..c3d2ff21c5 100644 --- a/src/apps/desktop/src/appearance.rs +++ b/src/apps/desktop/src/appearance.rs @@ -651,7 +651,9 @@ pub fn create_main_window( builder = builder .decorations(true) .title_bar_style(tauri::TitleBarStyle::Overlay) - .traffic_light_position(tauri::LogicalPosition::new(12.0, 15.0)) + // Match the 45px toolbar row (layout.toolbar.mdHeight) used by + // NavBar and SceneTopBar, including when the sidebar is collapsed. + .traffic_light_position(tauri::LogicalPosition::new(12.0, 22.5)) .hidden_title(true); }