Skip to content

fix: keep edit mode readable on themes that leave the bar see-through - #107

Merged
M4n0x merged 1 commit into
fix/edit-bar-widget-removalfrom
fix/edit-bar-tray-contrast
Oct 19, 2026
Merged

M4n0x merged 1 commit into
fix/edit-bar-widget-removalfrom
fix/edit-bar-tray-contrast

Conversation

@M4n0x

@M4n0x M4n0x commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Problem

On a light theme, edit mode was hard to read: the trays, dashed outlines, + and placeholder names faded into the wallpaper, and only the − badges showed. Stacked on #106.

Changes

  • Built-in, Graphite, Paper, Slate and Minimal leave the bar's strip transparent, but edit mode drew its trays and their chrome in ink for the bar's color scheme. Over a dark wallpaper in Light, or a light one in Dark, that ink disappeared.
  • A tray on a strip whose color is less than 85% opaque now brings an opaque backing. Its shade is chosen to contrast with the widgets' text color (defaults.foreground), so text that keeps one color in both appearances, as in many SketchyBar setups, still reads.
  • On a painted strip the trays keep the tint from feat: customize StableBar without editing the configuration file #103. Their outlines, + and names now follow the strip's own shade, and the outlines and + use the widgets' text color only when it reads on it.
  • Placeholder names, overflow arrows and the position names shown while dragging take the tray's shade.
  • README: the Edit Bar paragraph describes the backing.

Testing

  • swift test on this branch: 244 XCTest and 311 Swift Testing tests pass.
  • testTraysOnASeeThroughBarBringABackingThatTheirTextReadsOn and testTraysOnAPaintedStripKeepItsCalmTintAndReadOnIt draw the edit bar offscreen. In Light and Dark, they check that the tray has the right surface and that the +, widget text and a placeholder name contrast with it. They cover theme colors that follow the appearance and fixed ones that don't, a bar style text color that widgets never draw, and painted strips, which keep their tint.
  • Screenshots: scratch bars in edit mode with the Built-in theme, captured window-only and placed over a dark and a light backdrop, from a build of fix: take removed widgets off the bar while editing it #106 (before) and of this branch (after).

Merging

Merge #106 first. Then retarget this pull request to main if GitHub doesn't, and merge it with a merge commit or a rebase merge.

Claude Opus 5.5 via Claude Code

- Built-in, Graphite, Paper, Slate and Minimal leave the strip transparent, so edit mode drew its
  trays, outlines, + and names straight on the wallpaper. In Light over a dark wallpaper, or in
  Dark over a light one, only the − badges showed.
- A tray on a see-through strip now brings an opaque backing whose shade suits the widgets' text.
- On a painted strip, trays keep their tint, and their outlines, + and names follow the strip's
  shade, so colors that ignore the appearance stay readable too.
@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner October 19, 2026 15:19
@M4n0x
M4n0x merged commit 39bb842 into fix/edit-bar-widget-removal Oct 19, 2026
4 checks passed
@M4n0x
M4n0x deleted the fix/edit-bar-tray-contrast branch October 19, 2026 15:31
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.

1 participant