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
Let a symbol change to its filled form, or another variant, while a state is active #649
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:
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
The open state on bar widgets and their layouts: docs/styling.md#states.
Activity
feat: let a symbol fill, or take another variant, while a state is ac…
chore(release): 0.16.0 [skip ci]
stablebar-releases commentedon Nov 16, 2026
🎉 This issue has been resolved in version 0.16.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀