Skip to content

Commit 52fd0be

Browse files
committed
fix(desktop): align macOS traffic lights with toolbar icons
1 parent 2b2c72f commit 52fd0be

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/apps/desktop/src/appearance.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,9 @@ pub fn create_main_window(
651651
builder = builder
652652
.decorations(true)
653653
.title_bar_style(tauri::TitleBarStyle::Overlay)
654-
.traffic_light_position(tauri::LogicalPosition::new(12.0, 15.0))
654+
// Match the 45px toolbar row (layout.toolbar.mdHeight) used by
655+
// NavBar and SceneTopBar, including when the sidebar is collapsed.
656+
.traffic_light_position(tauri::LogicalPosition::new(12.0, 22.5))
655657
.hidden_title(true);
656658
}
657659

0 commit comments

Comments
 (0)