Skip to content

Show a package setting's choices with titles and preview images #601

Closed as not planned

Description

@Seb-GRAF

Problem

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:

"choices": [
  { "value": "stacked", "title": "Stacked", "image": "previews/stacked.png" },
  { "value": "inline", "title": "Inline", "image": "previews/inline.png" },
  "compact"
]
  • title replaces the raw value in Settings.
  • 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.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Nov 12, 2026
  2. Seb-GRAF commented on Nov 12, 2026

    @Seb-GRAF
    CollaboratorAuthor

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions