Repository navigation
Description
Problem
A widget can show a value as text, a straight progress rule, a graph or the battery shape, but not as a ring. A ring is the usual compact way to show a level, as Apple's Batteries widget and menu bar apps like DuoBar do: a battery or CPU level drawn around a symbol takes one icon's width instead of a symbol and a percentage.
#641 asked for native SwiftUI plugins so DuoBar's ring glyph could live in StableBar. A ring block gives that look through layouts, so it follows the theme and runs no native code.
Proposal
- A
ringblock, usable wherever blocks are: bar layouts, popups,hoverLayoutandoverlay. - It reads
values[source], or a 0–1 number infields[source], asprogressdoes, and fills clockwise from the top. style.accentis the fill andstyle.backgroundthe track, as forprogress.style.iconSizesets its diameter, as forsymbolandbattery, andlineWidthits stroke, as forgraph.childrenare drawn centered inside the ring, such as asymbol.- Changes animate with the block's
animation, asprogressdoes. - VoiceOver reads the value as a percentage, as it does for a graph shown without text.
{
"type": "ring", "source": "percent", "lineWidth": 2, "style": { "iconSize": 16 },
"children": [{ "type": "symbol", "name": "bolt.fill", "style": { "iconSize": 8 } }]
}Possible today
No. progress draws a straight rule and battery only macOS's battery shape. Blocks can't be layered either: overlay sits at the widget's bottom edge, so a symbol can't sit inside another block.
Related
- Allow independently distributed native SwiftUI widgets #641 and feat: Add Native SwiftUI Widget Plugin Support #659: native SwiftUI plugins, proposed to bring DuoBar into StableBar. This covers its ring without native code.
- feat: show a menu bar item on the bar as macOS draws it #640: a menu bar item can already be drawn on the bar as macOS draws it (
"display": "live"), which shows DuoBar's own glyph on macOS 27. - Let a popup slider draw as a filled pill in the theme's colors #642: the filled slider, the same approach of drawing a look in the theme's colors.
progressis drawn byProgressRuleinSources/StableBar/PopupView.swift.
Triaged by Claude Code via T3 Code (Claude Opus 5.5).
Activity
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 📦🚀