Skip to content

Draw a progress block as separate dots or segments #703

Closed

Description

@Seb-GRAF

Problem

A progress block draws one continuous rule. A level shown in a few steps, such as DuoBar's four volume dots (#641), can't be drawn: the closest is a thin bar.

Proposal

  • segments on a progress block: the number of equal pieces it draws instead of one rule.
  • A piece is lit when the value reaches it: ceil(value × segments) pieces, so any value above zero lights the first one.
  • Lit pieces take style.accent and the others style.background, as the rule does. The pieces share the block's width, style.spacing sets the gap between them (2 points by default), and style.cornerRadius rounds each one, so pieces as wide as they are tall with a radius of half their height draw as dots.
{ "type": "progress", "source": "sound.volume", "height": 2, "segments": 4, "style": { "width": 14, "spacing": 2, "cornerRadius": 1 } }

Possible today

No. A list with "orientation": "horizontal" can repeat a block, but only for rows a script prints, and a widgets package can't run scripts.

Related

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Nov 16, 2026
  2. stablebar-releases commented on Nov 16, 2026

    @stablebar-releases

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