Theme · Platform: caption buttons of their own height, titles that give way

Windows caption buttons take the bar's height less its hairline, a new
token, instead of their row's, so they keep their height beside caps
that wrap below them. A title bar's title is an Ellipsis: on Windows it
takes the free width before the buttons and gives way; a centered title
sits inset past the lights on both sides. The controls never shrink.
Tests hold a long Windows title's close button inside a 280px bar and
wrapped caps inside their row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-09-27 18:04:05 -04:00
1 parent f3c8cca4c9
commit 815aed304d
5 files changed
+80 -8

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ pub fn title_bar(cx: &App) -> impl IntoElement + use<> {
})),
)
.child(code(
"TitleBar::new(id) with no style leaves room for the real macOS lights.",
"TitleBar::new(id) with no platform leaves room for the real macOS lights.",
cx,
))
}