Skip to content

Let a symbol change to its filled form, or another variant, while a state is active #649

Closed

Description

@M4n0x

Problem

A symbol block draws one SF Symbol by name, and states can only restyle it: color, background, border, padding, size, offset and opacity. Nothing lets a symbol switch to another variant of itself while a state is active. A common case is an Apple menu widget whose layout draws leaf: it should fill (leaf.fill) while the Apple menu is open, as tab bars and toolbars fill the selected icon. A popup button could also fill on hover, or a widget could draw its icon slashed in a data state such as muted.

Proposal

Add a symbolVariant style property that draws SF Symbols in one of their variants: fill, slash, circle, square or rectangle, or several joined by dots, such as circle.fill, so bell draws as bell.fill. none draws symbols as named, undoing a variant set in a lower layer. A symbol without that variant keeps its own look.

Like iconSize, it applies to a widget's icon and to its layout and popup blocks, and blocks inherit it. It can be set in any state:

{
  "id": "apple", "type": "appleMenu", "position": "left",
  "layout": { "type": "symbol", "name": "leaf", "style": { "states": { "open": { "symbolVariant": "fill" } } } }
}

This adds a property to the configuration format. It is additive: no existing property changes meaning.

Possible today

Only with workarounds: stack leaf and leaf.fill with opposite open opacities and offset one onto the other, which needs fixed widths and offsets, or read the name from a script's source field, which the Apple menu widget doesn't have.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Nov 14, 2026
  2. added a commit that references this issue on Nov 14, 2026
    b57ad13
  3. stablebar-releases commented on Nov 16, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.16.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions