Skip to content

fix(app): check box labels centered on the box - #51

Merged
FedeB2160 merged 1 commit into
mainfrom
claude/v2-checkbox-align-8075ca
Nov 9, 2026
Merged

FedeB2160 merged 1 commit into
mainfrom
claude/v2-checkbox-align-8075ca

Conversation

@FedeB2160

Copy link
Copy Markdown
Owner

Summary

  • Implicit CheckBox style in Styles.xaml: Padding 8,0,0,0 and VerticalContentAlignment Center. The Fluent template (Padding 8,5,0,0, Top) is sized for 14 px text; at 12 px (ADR 0028 point 13) the label's center was at 13.98 against the box's 16.0.
  • Applies to every labeled check box (MainWindow, Settings, About, dialogs). Row checks, Select all and other empty check boxes are unchanged (the template zeroes the margin of empty content; row checks and Select all have Padding 0).
  • Smoke test: label center equals box center within 1 px for "Include unknown versions" and "Close to tray" (Settings menu expanded and compact). Fails without the style (16 vs 13.98).
  • ADR 0028 point 20.

Test plan

  • dotnet test app/tests/WinGetStudio.Tests 108/108
  • dotnet test app/tests/WinGetStudio.Core.Tests 181/181
  • App launched for a visual check

The Fluent check box puts its label at the top with 5 px above it, sized for
14 px text; at 12 px the label sat 2 px above the box. An implicit CheckBox
style centers the content with no top padding, so the two centers match with
any font. Check boxes without text are unchanged (ADR 0028 point 20).
@FedeB2160
FedeB2160 merged commit 3c2a6b8 into main Nov 9, 2026
3 checks passed
@FedeB2160
FedeB2160 deleted the claude/v2-checkbox-align-8075ca branch November 9, 2026 14:02
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