Skip to content

fix: drop the earlier starter's bar sizes so each theme draws with its own - #909

Merged
Seb-GRAF merged 1 commit into
mainfrom
fix/907-starter-bar-sizes
Nov 24, 2026
Merged

Seb-GRAF merged 1 commit into
mainfrom
fix/907-starter-bar-sizes

Conversation

@Seb-GRAF

@Seb-GRAF Seb-GRAF commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

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.inset and bar.spacing that 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:

    • a theme's edit would also override a screen that sets its own size, because theme profiles apply over a screen's bar;
    • an included file already has a profile with that edit's name, so the two would merge;
    • a bar draws no theme.

    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

  • New tests in ThemePackageTests:
    • theEarlierStartersBarSizesLeaveTheFileAndStayAsAnEditOfAThemeThatSetsItsOwn: a starter file on Nord with a screen on Léman and one on Clear.
      • The main bar keeps only offset.
      • Nord's height of 40 moves to "Nord edits".
      • The bar and the Léman screen still draw 40 / 12 / 8.
      • The Clear screen draws Clear's 37 / 14 / 4.
    • 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.
  • In a clean macOS 26 VM: updating 0.18.0 → this branch after Léman → Store Catppuccin → Léman, the notice is gone.
  • The retired-theme and earlier-color migration tests still pass.
  • The full suite ran locally. All 293 XCTest tests pass. Swift Testing ran 1428 tests and the only failures are six that also fail on plain main on this Mac: the five unchangedAppRejects… release-script cases and workspaceLabelsFollowTheBarFromLightToDark.

Merging

Merge commit: one fix commit.

Claude Opus 5.5 via Claude Code

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Before and after

main at 2b04055 → this pull request at 5dafa75 · 0 screens drawn · 0 changed

Couldn't draw:

  • app: The screens-app artifact can't be used: manifest.json lists more than 300 screens.

Visual review: Drawing the screens failed, see above.

@Seb-GRAF
Seb-GRAF force-pushed the fix/907-starter-bar-sizes branch from 990deab to 5dafa75 Compare November 24, 2026 08:19
@Seb-GRAF
Seb-GRAF enabled auto-merge November 24, 2026 08:20
@Seb-GRAF
Seb-GRAF added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 73e9ca0 Nov 24, 2026
23 of 26 checks passed
@Seb-GRAF
Seb-GRAF deleted the fix/907-starter-bar-sizes branch November 24, 2026 08:41
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.19.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

After updating from 0.18, the starter's bar sizes apply under every theme

1 participant