Skip to content

Fit the window on small laptop screens (compact layout) - #16

Merged
cookingwithsimon merged 1 commit into
mainfrom
claude/project-thread-svvufi
Nov 26, 2026
Merged

cookingwithsimon merged 1 commit into
mainfrom
claude/project-thread-svvufi

Conversation

@cookingwithsimon

@cookingwithsimon cookingwithsimon commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Requested by Simon · project thread

What changes for the user

Before: the window was drawn for a 1320x860 space. On a 1366x768 laptop it opened maximised with big text, tall controls and wide gaps, so the checks and device panel got squeezed. At 125% scaling the minimum height (600) was taller than the screen.

After: when the window is smaller than about 1240x840, it switches to a compact layout: smaller type (14 body instead of 16, 26 headline instead of 40), 40px top bar instead of 56, tighter gaps, a smaller status light and a narrower Settings panel. It switches back when the window gets bigger. Settings has a new Size picker (Automatic, Large, Compact) to force either one. The minimum window size is now 760x500.

How

  • Sizes, gaps and the type scale are resource tokens read with DynamicResource. Themes/Shared.xaml holds the large values, the new Themes/Compact.xaml the compact ones.
  • Theme.SetCompact merges Compact.xaml after the look, so it works the same in all three Looks. Theme.Apply keeps it last when the look changes.
  • MainWindow re-checks on every resize and when the Size setting changes. AppSettings.Density saves the choice.
  • Smoke test: sets the runner's screen to 1366x768 and adds small125-* shots at 1093x576 (a 1366x768 screen at 125%, less the taskbar) for every look, plus one large-main-dark shot. The new --window-size WxH argument exists only for this.

Testing

  • Core tests pass (229)
  • Windows CI run is green (integration tests, publish, smoke-test screenshots)
  • Hardware checklist updated if behaviour on real devices changed (n/a: UI only)

Generated by Claude Code

The window was drawn for a 1320x860 space, so on a 1366x768 laptop (and more so at
125% scaling) the top bar, status field and gaps took most of the height. Sizes and
gaps are now resource tokens: Shared.xaml holds the large values, Compact.xaml the
small ones, and the window switches to compact automatically when it is smaller than
1240x840 (in DIPs). Settings gets a Size picker (Automatic, Large, Compact).

Minimum window size drops to 760x500 so it fits 1366x768 at 125%. The smoke test now
shoots at 1366x768 and adds 1093x576 shots (125%) for every look.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014Z4fszGrEVv7BKTnGMSRR7
@cookingwithsimon cookingwithsimon self-assigned this Nov 26, 2026
@cookingwithsimon
cookingwithsimon merged commit 2fc3077 into main Nov 26, 2026
1 check passed
@cookingwithsimon
cookingwithsimon deleted the claude/project-thread-svvufi branch November 26, 2026 05:23
@cookingwithsimon cookingwithsimon mentioned this pull request Nov 26, 2026
2 tasks
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.

2 participants