Repository navigation
Fit the window on small laptop screens (compact layout) - #16
Merged
Merged
Conversation
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
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
DynamicResource.Themes/Shared.xamlholds the large values, the newThemes/Compact.xamlthe compact ones.Theme.SetCompactmerges Compact.xaml after the look, so it works the same in all three Looks.Theme.Applykeeps it last when the look changes.MainWindowre-checks on every resize and when the Size setting changes.AppSettings.Densitysaves the choice.small125-*shots at 1093x576 (a 1366x768 screen at 125%, less the taskbar) for every look, plus onelarge-main-darkshot. The new--window-size WxHargument exists only for this.Testing
Generated by Claude Code