Repository navigation
fix: drop the earlier starter's bar sizes so each theme draws with its own - #909
Merged
Merged
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
This was referenced Nov 24, 2026
Closed
Seb-GRAF
force-pushed
the
fix/907-starter-bar-sizes
branch
from
November 24, 2026 08:19
990deab to
5dafa75
Compare
Seb-GRAF
enabled auto-merge
November 24, 2026 08:20
|
🎉 This PR is included in version 0.19.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Problem
After updating from 0.18, Settings says 3 settings apply to every theme: Height, Side inset, Space between widgets for people who never changed them. Those are the 0.18 starter's bar sizes (40 / 12 / 8), which #889 removed from the starter but not from existing files. They override every theme's own sizes, so Clear draws at 40 / 12 / 8 instead of 37 / 14 / 4.
They're also the defaults, so Reset and Keep with … Only change nothing visible, and the buttons look broken.
Fixes #907
Changes
A launch migration,
migrateStarterBarSizes, runs after the retired-theme migration for the main file and for each screen setup with its own bar.It only runs on a file saved before 0.19.0, the first release whose starter leaves the sizes to the theme. A file pinned to 0.19.0 or later keeps every size: there, a size equal to the starter's was a choice.
Each of
bar.height,bar.insetandbar.spacingthat still equals the starter's value leaves the main file. A value someone changed, such as a height of 36, stays.To see whether removing a size changes a bar, it loads the configuration with and without the starter's sizes and compares the bar, and each screen with its own look. That covers the theme, its edits profile and includes, as the bar draws them.
Where a bar would change, the starter's value stays as an edit of that bar's theme. It goes in the profile that Keep with … Only writes, such as "Nord edits", because Nord sets its own height of 30.
The migration then loads the result again. Where no edit keeps every bar as it was, the starter's value stays in the main file. That covers three cases:
bar;No bar changes on update.
The exception is the new included themes (
includedThemeIDs). They came with 0.19.0, so a bar draws one with the starter's sizes only because of this bug. There, the sizes just go. This matters for people who chose Clear or another new theme on the beta from Nov 23.Testing
ThemePackageTests:theEarlierStartersBarSizesLeaveTheFileAndStayAsAnEditOfAThemeThatSetsItsOwn: a starter file on Nord with a screen on Léman and one on Clear.barkeeps onlyoffset.aChosenBarSizeAndAFileSavedByTheReleaseWithoutTheStartersSizesKeepTheirSizes: a height of 36 stays while the starter's inset and spacing go, and a file pinned to 0.19.0 isn't touched.theStartersBarSizeStaysWhereNordsEditCantKeepEveryBar: the height stays in the main file when a screen on Nord sets its own height of 28, and when an included file has a "Nord edits" profile. This test fails on the first version of the migration.mainon this Mac: the fiveunchangedAppRejects…release-script cases andworkspaceLabelsFollowTheBarFromLightToDark.Merging
Merge commit: one
fixcommit.Claude Opus 5.5 via Claude Code