Skip to content

Align title-bar contents and caption buttons on one midline#48

Merged
StuartMeeks merged 3 commits into
mainfrom
fix/titlebar-alignment
Jun 7, 2026
Merged

Align title-bar contents and caption buttons on one midline#48
StuartMeeks merged 3 commits into
mainfrom
fix/titlebar-alignment

Conversation

@StuartMeeks
Copy link
Copy Markdown
Owner

Summary

The five title-bar elements (hamburger, app icon, app name, search box, CLI switcher) were already geometrically centred at y=24 in the 48px bar — what made the row look misaligned was the system caption buttons, which default to Standard height (32px, top-aligned, centred at y=16).

  • AppWindow.TitleBar.PreferredHeightOption = Tall → caption buttons become 48px, putting their glyphs on the same y=24 midline as everything else.
  • Explicit VerticalAlignment="Center" on the hamburger for consistency with its siblings.
  • CHANGELOG entry under Unreleased.

Verification

  • Snipdeck.App compile-verified on the Windows build agent (0 warnings, 0 errors).
  • Visual check on the Win11 box is the real test — if anything still reads off-centre after this, it's an optical (per-element) nudge rather than layout.

🤖 Generated with Claude Code

StuartMeeks and others added 3 commits June 7, 2026 10:09
The custom title bar is 48px with everything centred at y=24, but the
system caption buttons defaulted to Standard height (32px, hugging the
top), making the row read as vertically misaligned. Set
PreferredHeightOption.Tall so the caption buttons are 48px and their
glyphs share the same midline as the hamburger, app icon and name,
search box and CLI switcher. The hamburger also gets an explicit
VerticalAlignment to match its siblings.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Their layout boxes were dead-centre, but the visible mass of both sits
below centre — the glyph because its drop shadow extends downward, the
text because Segoe UI reserves diacritic space above the caps — so both
read a couple of pixels low next to the hamburger. Raise each by 2px
via Translation (visual-only, no layout impact).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2px overshot on the Win11 box; 1px sits the glyph and app name on the
shared midline.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@StuartMeeks StuartMeeks merged commit b09749e into main Jun 7, 2026
6 checks passed
@StuartMeeks StuartMeeks deleted the fix/titlebar-alignment branch June 7, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant