Repository navigation
Description
Problem
A slider block always draws the stock macOS slider (PopupSlider in Sources/StableBar/PopupView.swift, or EndStopSlider when it has an endStop). Its style can't reach it: height, background, cornerRadius and accent don't change the control, and in popups on macOS 26 and later it draws tick lines and a gray knob (noted in #404).
So a theme can't give a popup a slider in its own look. For example, a Sound popup whose volume control is a 40 pt pill on the theme's raised surface, filled from the left in the accent color, with a speaker glyph inside the fill, set by dragging or clicking anywhere, as tonal designs such as Material 3 or Control Center draw it.
Proposal
An opt-in look for slider blocks that StableBar draws itself, taking its shape from the block's style:
{
"type": "slider", "title": "Volume", "source": "volume", "onChange": "…",
"filled": true, "icon": "speaker.wave.2.fill",
"style": { "height": 40, "cornerRadius": 20, "background": "@token.surfaceRaised" }
}filled: truereplaces the native control with a bar: the block'sbackgroundis the track (a faint text-color track without one),accentfills it from the leading edge andcornerRadiusrounds both. Its height isstyle.height.icon, an optional SF Symbol, sits at the leading edge inside the fill, inaccentText. The fill is never narrower than the bar is tall, so the glyph always sits on it; the slider asks for the width that takes, more with an end stop.- Clicking or dragging anywhere sets the value from the pointer, snapped to
step. The fill follows live, andonChangegetsVALUEwhen the drag ends, as today. - The arrow keys move it by
step, and VoiceOver reads its title and value and can adjust it. Its focus look follows whatever Popup sliders, toggles, segmented controls, the chooser and text fields show no keyboard focus #517 settles for sliders. - With an
endStop, as on Amphetamine's duration slider, the steps end at a notch, the end stop's label sits on the bar past it, and choosing it fills the whole bar. - Additive: sliders without
filledstay native. Needs the schema, the decoder,docs/popups.mdand a scene.
Possible today
No. A progress block can show the level in that shape but can't be dragged; a row of clickable segments can set it in steps, without dragging.
Related
- Give sliders a separate last stop, so Amphetamine's can keep the Mac awake indefinitely #399 / feat: let a slider end in a separate stop past its range, such as ∞ #404: StableBar already draws its own slider for
endStop(EndStopSlider), so drawing one isn't new. - Popup sliders, toggles, segmented controls, the chooser and text fields show no keyboard focus #517: popup sliders show no keyboard focus; this look needs a focus treatment too.
- It adds configuration properties, so it needs a maintainer's OK.
Triaged by Claude Code (Claude Opus 5.5).
Activity
feat: let a filled slider end in a stop past its range, such as ∞
feat: let a popup slider draw as a filled pill in the theme's colors (s…
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 📦🚀