You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show a package setting's choices with titles and preview images #601
A string setting with choices shows each choice's raw value in a picker, such as both, on or left. People can't tell what a choice does to the bar without trying it, and a package such as AI usage, whose settings change the widget's layout, is hard to customize.
Proposal
Let a choice in package.json be an object next to the plain strings that work today:
When choices have images, Settings shows them as clickable image tiles with the title under each and the selected one marked. Picking one applies it at once; an active package's settings already save automatically.
Image paths are checked like screenshot: inside the package, PNG or JPEG.
package.schema.json, docs/packages.md, the validation and --inspect-package cover the new form. It's additive, so plain string choices keep working, but an older StableBar can't read object choices: the docs tell package authors to set minimumVersion.
The AI usage package in stablebar-packages will use it first.
Possible today
No. WidgetPackageSetting.choices decodes [String] only, and PackageSettingsFields in Sources/StableBar/PackagesView.swift draws a Picker of raw values. A description can explain the values in words.
Not planned for now: storing titles and images in package.json would break released StableBar builds (see #603). #602 covers readable settings with manifest order and labels.
Activity
Seb-GRAF commentedon Nov 12, 2026
Not planned for now: storing titles and images in
package.jsonwould break released StableBar builds (see #603). #602 covers readable settings with manifest order and labels.