Skip to content

feat: customize StableBar without editing the configuration file - #103

Merged
M4n0x merged 34 commits into
mainfrom
feat/customize-ux
Oct 19, 2026
Merged

M4n0x merged 34 commits into
mainfrom
feat/customize-ux

Conversation

@M4n0x

@M4n0x M4n0x commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

StableBar's configuration has grown to more than 200 properties, and Customize showed most of them. That suits people who already edit config.json, but not people who only want to pick a look and arrange a few widgets:

  • Changes waited for a Save step.
  • Themes were small swatches.
  • Widget settings exposed roles, colors and JSON.
  • Widgets were arranged in a list, away from the bar.

This branch makes the common path — try a theme, then set up widgets — work without the file. Every setting stays reachable under Advanced or in the file.

Closes #63.

Changes

Five pieces, each built and reviewed in turn, then fixed through two days of daily use:

  1. Customize saves as you go.
    • Every change is written to the main configuration file right away, and a burst of typing is one undo step.
    • Undo and Redo (⌘Z / ⇧⌘Z) write the file too, and never overwrite edits made outside Customize.
    • The Save and Discard buttons are gone for Customize's own changes. Temporary command-line edits keep their own notice with Save and Discard.
    • Symbolic links to the configuration stay links.
  2. A theme gallery.
    • Full-width cards show the same sample bar drawn in each theme's look. Click one to apply it.
    • Store themes download with Get.
    • When the main file overrides values the theme sets, a notice lists them in plain words and offers Reset them.
  3. Widget setup without JSON.
    • A widget shows what it displays, what a click does, its screens and its position. The rest (roles, colors, font, raw JSON) moves under Advanced.
    • Add widget lists built-in and Store widgets together, with search. Store packages that run commands, or declare hosts, macOS permissions, required tools or secret settings, show them for review before they're added. Plain packages are added in one click.
    • Widgets are dragged within and between positions, and groups move together.
  4. Try Themes on the bar. Try Themes… in the bar's right-click menu cycles themes on the real bar with ← and →. Keep saves the theme and Cancel or Esc restores it, without writing anything.
  5. Edit the bar in place (Add an “Edition” mode to arrange widgets directly on the bar #63). Edit Bar turns the bar itself into the editor:
    • Each position sits in a soft tray, and widgets keep their look, with a dashed outline and a − badge.
    • Position names appear while dragging, and the tray under the pointer is highlighted.
    • + adds a widget right where it sits, through an "Add here" popover.
    • Undo and Done sit in a small panel below the bar.
    • Clicking a widget opens its settings in Customize, and Esc leaves edit mode.

Merged with main:

No configuration properties were added. The README's Customize, Themes and Edit Bar sections describe the new behavior.

Testing

  • swift test on macOS: 241 XCTest and 310 Swift Testing tests pass on the merged branch.
  • Each piece and each fix round was reviewed against its spec. The branch ran as the developer's everyday bar on a notched 1512 pt laptop with an external display. That surfaced these, all fixed:
    • an empty review sheet for Store widgets with commands;
    • oversized edit-mode tiles;
    • ⌘Z on QWERTZ keyboards;
    • theme previews that overflowed;
    • an Undo/Done panel that was too easy to miss.
  • The screenshots come from a separate dev build with a scratch configuration, on a dark background. Since they were taken, the position labels shown while dragging use a small material capsule, so they read on Liquid Glass.
  • Not checked: displays with different scales side by side while the Add popover is open, and typing with an input method (Japanese, Chinese) in the popover's search field.
  • Known follow-ups. These are small and none blocks the redesign:
    • The theme override notice compares main-file values with the theme's active profiles as well as its base. A value that only a theme profile hides is listed, and Reset them would remove it.
    • Theme cards draw their sample without Liquid Glass.
    • A few rare edge cases in the Add popover: left and right arrows during input-method composition, and hover after a scroll.
    • When a pending Customize save fails just as a profile's JSON is applied with changes, the failure message is replaced.

Before and after

Appearance

Before After
Appearance before Appearance after

Widgets

Before After
Widgets before Widgets after

Add widget

Add widget

Try Themes

Try Themes

Edit Bar

Edit Bar

Dragging widgets

Dragging widgets

Add here

Add here popover

Search in Add here

Search in Add here

Merging

Use a merge commit, so each commit reaches the changelog. The branch also contains one merge from main (#66, #98 and #100), resolved and tested.

Implemented with GPT-6.1 Sol via Codex and reviewed with Claude Opus 5.5 via Claude Code.

M4n0x added 30 commits October 18, 2026 17:09
- Discard a pending change that no longer applies after an outside edit, so Undo,
  closing, quitting and command-line requests are never blocked.
- Clear the history notice after the next change or when the window closes, and
  don't report Customize's own Save of command-line changes as an outside edit.
- Show the configuration error banner only in Appearance, Widgets and Profiles again.
- Reorder and edit saved widgets while command-line widgets are pending.
- Theme cards preview the user's own widgets in each theme, and a click saves the theme.
- Store themes appear in the gallery with Get, which installs and selects them in one step.
- A notice names the user's settings that override the selected theme, with Reset them.
- Previews never run widget actions or commands, and only rebuild when the configuration changes.
- Override labels use plain sentence-case wording.
- Keep an emptied profile configuration as {} only for profiles, and document name-based unset.
- Add widget lists every built-in widget and the Store's widgets, one entry per thing.
- Drag widgets within and between position groups; grouped widgets move together.
- A widget's settings show what it displays, what a click does and which screens show it,
  with look settings and the JSON editor behind Advanced.
- Offer every position in the Position picker and Move to menu again.
- Move widgets with Move up and Move down actions and ⌥⌘↑/⌥⌘↓, keeping groups together.
- Explain clicks on Workspaces instead of offering choices that would break them.
- Name widgets plainly everywhere instead of showing generated IDs.
- Use one drag mechanism and the list's primary action for adding.
- Commit a field being edited to its own widget before the selection changes.
- Show user-chosen IDs as names and tell same-named rows apart without generated IDs.
- Try Themes… in the bar's right-click menu and the menu-bar icon's menu opens a panel under
  the bar.
- The arrow keys put each theme on the real bar without saving; Keep saves it with Undo, and
  Cancel restores the bar as it was.
- The gallery and Try Themes build the same theme edit, keeping an installed theme's settings
  from the main file only.
- Arrow keys step past a theme that fails to preview, and Keep is unavailable for it.
- Try Themes… from the menu-bar icon always finds a bar or is unavailable.
- Edit Bar shows every configured widget in labelled position sections, including hidden ones.
- Drag widgets within and between sections, add with + and remove with −.
- Clicking a widget opens its settings in Customize, and every change is saved with Undo.
- Profile and context changes keep edit mode on; only explicit and external reloads end it.
- Window clearance always uses the normal bar frame.
- Esc ends edit mode only when the bar itself is the key window without a sheet or field editor.
- Share the drag code with the Customize sidebar, and give up key status in a supported way.
- Use title case in edit mode's menus, fix the README's keyboard note, and hide Edit Bar when
  it can't start.
- Edit-mode tiles take each widget's own width, with an outline and a corner remove badge.
- Sections are sized from their measured tiles and fit the screen without covering Undo and Done.
- A section that still can't fit scrolls with a visible fade and the mouse wheel.
@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner October 19, 2026 11:54
@M4n0x
M4n0x merged commit 915e46b into main Oct 19, 2026
4 checks passed
@M4n0x
M4n0x deleted the feat/customize-ux branch October 19, 2026 12:17
stablebar-releases Bot pushed a commit that referenced this pull request Oct 21, 2026
## [0.5.0](v0.4.0...v0.5.0) (2026-10-21)

### Features

* add a calendar provider for the next meeting and today's agenda ([451c30a](451c30a))
* add a states map to every style ([a4ae6f2](a4ae6f2))
* add an equalizer block that bounces while its source is on ([#141](#141)) ([8e855ee](8e855ee))
* add an open state for the widget whose popup shows ([8eb69f4](8eb69f4))
* add Menu Bar, Island, Minimal and Terminal themes that restyle the whole bar ([570ab73](570ab73))
* add rules that set data states from provider values and fields ([7c9c70e](7c9c70e))
* add Tonhalle Line theme and presentation examples ([74449e5](74449e5))
* add widget packages that run no commands ([63efa16](63efa16))
* animate changed text and symbols with transitions ([9379e1a](9379e1a))
* animate the active app widget to fit the app's name ([0a00e3f](0a00e3f))
* ask before enabling an update that adds commands, hosts or permissions ([b623d76](b623d76))
* browse and install packages from the store ([b739dfc](b739dfc))
* check for and install updates in the app, on a stable or beta track ([f852a25](f852a25))
* customize StableBar without editing the configuration file ([#103](#103)) ([915e46b](915e46b))
* draw widgets, popups and the bar with Liquid Glass ([7f2310f](7f2310f))
* edit every property the bundled themes set in Customize ([d1fe47c](d1fe47c))
* fade or roll widgets in and out when their output hides them ([664d856](664d856))
* give clock layouts the time and show every widget's text in Diagnostics ([8dde579](8dde579))
* give colors light and dark values and ship the built-in look and three themes ([5d7c90c](5d7c90c))
* give each screen setup its own bar ([d71a203](d71a203))
* keep notification banners clear of the bar ([56872dc](56872dc))
* keep one Customize item in the bar's menus and move their other actions to General ([2484317](2484317))
* keep package secrets in the Keychain ([bc29768](bc29768))
* keep windows clear of the bar with Accessibility ([d18f156](d18f156))
* let script and provider output set a data state ([0581fa0](0581fa0))
* list the permissions that enabled data sources need in setup ([8e21d1d](8e21d1d))
* merge profiles by name across configuration layers ([7f0f2ed](7f0f2ed))
* offer presets in setup instead of choosing widget sets ([6473009](6473009))
* offer sets of built-in widgets in setup ([be2d9fc](be2d9fc))
* open popups on hover and add themed tooltips ([0ba0814](0ba0814))
* open URLs and apps from widgets without a shell ([8338ff9](8338ff9))
* organize Customize around the bar's look and show where each style comes from ([be1ca77](be1ca77))
* pick a theme from installed theme packages ([b600218](b600218))
* preview widget sets live on cards and place them beside the app and clock ([fc1a3ff](fc1a3ff))
* register data source types in one table and show each widget's source in Diagnostics ([45b9f3a](45b9f3a))
* remove a saved package secret from the Packages tab ([ac51e7c](ac51e7c))
* replace bundled themes with the community collection ([04b0077](04b0077))
* send power source changes to subscribed scripts ([054d9ae](054d9ae))
* set the bar's background in Customize ([bff824e](bff824e))
* share theme presentation across widgets and bar layout ([7db7ffe](7db7ffe))
* ship a sketchybar-app-font glyph set and match app name prefixes ([b23a4b0](b23a4b0))
* show and focus individual workspace windows ([85dc0a8](85dc0a8))
* show skipped releases in a compact update popup ([5319a29](5319a29))
* show temporary output for a set time ([38eb9f9](38eb9f9))
* show the app version in an About tab ([a0d94fc](a0d94fc))
* show the frontmost app's menus in an app menu widget ([45400f8](45400f8))
* show what a package needs in its review ([1740483](1740483))
* simplify configuration and onboarding ([03d527b](03d527b))
* uninstall installed package versions ([67e641f](67e641f))
* uninstall installed package versions ([#44](#44)) ([6c49753](6c49753))
* update audio widgets and scripts as soon as the volume or output device changes ([05a0e62](05a0e62))
* update battery widgets when macOS reports a power change ([1245d3b](1245d3b))

### Bug Fixes

* accept uppercase URL schemes and say widgets packages contain no commands ([90e95a5](90e95a5))
* align workspace height and expose vertical padding ([#60](#60)) ([88198ca](88198ca))
* allow calendar access in Developer ID releases ([1104e93](1104e93))
* allow negative workspace underline offsets ([a172616](a172616))
* allow package secrets only in the environments of a package's own widgets and providers ([6f7e5b9](6f7e5b9))
* check for the latest release before downloading ([2acbd83](2acbd83))
* check for updates every four minutes ([1362d62](1362d62))
* draw Blueprint's workspace underline on the widget's bottom border ([948b7dc](948b7dc))
* give Blueprint's widgets room in a full-height frame ([077bd53](077bd53))
* give icon-only widgets the height of a line of text ([9a8e8ac](9a8e8ac))
* identify local app builds as development ([83a0b4b](83a0b4b))
* ignore unchanged settings selections ([7ca7324](7ca7324))
* keep a clicked popup open when glass draws behind its widget ([2569727](2569727))
* keep colors that setup and the starter configuration wrote from hiding a theme ([c6de0a8](c6de0a8))
* keep native workspace icons steady on hover ([8b2b543](8b2b543))
* keep new beta releases in order on GitHub ([ae454b6](ae454b6))
* keep notification clearance from freezing the bar ([546c908](546c908))
* keep popup content at full size while opening ([470b7da](470b7da))
* keep the bar running when a package's widget and its popup are removed together ([a46a180](a46a180))
* keep the store's errors and unknown kinds from blocking local packages ([9424aaa](9424aaa))
* keep zoomed windows below the bar ([eb15873](eb15873))
* list commands that packages read from fields in their review ([9a50ddf](9a50ddf))
* make the whole popup block clickable ([d84a9b2](d84a9b2))
* make the whole widget tile clickable ([3f0f3ac](3f0f3ac))
* make the whole widget tile clickable ([#46](#46)) ([2f36fd6](2f36fd6))
* match update icons to the active theme ([e38f7ff](e38f7ff))
* move neighboring widgets when app menus expand ([6263d6f](6263d6f))
* preserve older themes as custom after updates ([a70201e](a70201e))
* recover app menus after temporary read failures ([1a19cea](1a19cea))
* reject contradictory width limits inside states ([026afd4](026afd4))
* render workspace icons at each display resolution ([12c477c](12c477c))
* save only edited package secrets and never lose the saved one ([6a4ff00](6a4ff00))
* show a store package's source and mark installed store entries ([39f00a6](39f00a6))
* show the review of the package selected last ([6d5703c](6d5703c))
* show updates sooner and resize the update popup ([618f575](618f575))
* take removed widgets off the bar while editing it ([#106](#106)) ([594aa34](594aa34))
* tell Settings and in-place bar editing apart in the menus ([39e8156](39e8156)), closes [#131](#131)
* treat an empty data state name as no state ([557d267](557d267))
* use widget hover colors for app menus ([f3b0e7d](f3b0e7d))

### Performance Improvements

* apply only changed script output so repeated updates redraw nothing ([f7e0d0c](f7e0d0c))
* build layout blocks without type erasure and keep the measuring copy still ([e39ac94](e39ac94))
* resolve widget styles in the store so one update redraws only its widgets ([86f8935](86f8935))
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.5.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.

Add an “Edition” mode to arrange widgets directly on the bar

1 participant