Skip to content

fix: align Blueprint's workspace underline and give its widgets room - #126

Merged
Seb-GRAF merged 2 commits into
stablebox:mainfrom
alexandrebucci:fix/blueprint-layout
Oct 20, 2026
Merged

Seb-GRAF merged 2 commits into
stablebox:mainfrom
alexandrebucci:fix/blueprint-layout

Conversation

@alexandrebucci

@alexandrebucci alexandrebucci commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Two layout details in the bundled Blueprint theme (#118). The focused workspace's underline floats 6 pt above the outline of the workspace widget instead of sitting on it. The 4 pt bar margin also leaves the outlined widgets about 3.5 pt above and below inside the frame, so the bar looks cramped.

Changes

  • Underline on the border. A cell-placed underline is drawn under the cell's text, inside the widget's vertical padding (WorkspaceView in BarView.swift). Blueprint now pins paddingVertical to 6 and sets indicatorStyle.offsetY to 6, so the 2 pt underline covers the widget's bottom border.
  • Full-height frame. Blueprint no longer sets bar.margin, so its outlined frame fills the bar, which leaves about 7.5 pt above and below the widgets in a 40 pt bar. It sets bar.inset to 8 so the sides are as tight as the top and bottom. A configuration with its own inset keeps it, and Appearance offers to reset it.

Testing

  • swift test --filter Theme passes, and npx commitlint --from origin/main passes.
  • Validated the theme as a package with StableBar 0.5.0-beta.121 (--inspect-package, --install-package and --validate on a scratch configuration).
  • Used it on a real 40 pt bar with a workspaces widget: the underline lands on the widget's outline, and the widgets have room inside the frame.

Merging

A merge commit or rebase merge, so both fixes reach the changelog.

Claude Opus 5.5 via Claude Code

albucci and others added 2 commits October 20, 2026 14:18
The underline sits under the cell's text, inside its vertical padding,
so it floated 6 pt above the widget's outline. Pin paddingVertical to 6
and move the underline down by the same amount.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With a 4 pt margin the outlined widgets had about 3.5 pt above and below
them inside the frame. Without the margin the frame fills the bar, which
leaves about 7.5 pt in a 40 pt bar, and an 8 pt side inset keeps the
sides as tight as the top and bottom.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

3 participants