mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-10-28 17:05:13 +08:00
* fix(ui): align title-bar rows and share document header switches Keep #1146's leading space derived from the macOS traffic lights, rather than the previous fixed 80pt. Add a shared content centre for the title-bar rows, so headers with different bottom borders align with those buttons. Keep the editor's full leading space: a control's inner padding should not reduce the gap before its clickable area or shift docked file tabs. Share Dock / Fill controls between the editor and diff headers, and use matching icons with localized tooltips for Split / Unified view. Validation: formatting and Host boundary checks passed; GUI tests passed (2506 passed, 2 ignored); local visual acceptance passed. * fix(ui): give icon switches accessible button names Expose each shared switch cell as a button with its localized tooltip name and pressed state. This lets assistive technology identify the icon-only choices and use GPUI's existing accessible click handling. Formatting, Host boundary, and diff checks passed. GUI tests: 2506 passed, 2 ignored. * fix(ui): share the terminal button in filled document headers Use the editor's terminal button in both filled headers. Clicking it docks the current file or diff beside the terminal without closing its content. The shared builder also provides an accessible button name. The click test verifies that the diff, focused file, expanded state, view mode, and other tabs' layouts are preserved. GUI tests: 2507 passed, 2 ignored. Build, formatting, Host boundary, and visual acceptance passed. * fix(ui): draw Split / Unified as two panes so they don't read as Dock The diff header now holds both switches side by side, and a frame with one vertical stroke was the Dock glyph shifted a point and a half. Split is two frames next to each other, Unified two frames stacked. --------- Co-authored-by: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com>