Skip to content

fix: center the Sound widget's speaker in its icon - #293

Closed
Seb-GRAF wants to merge 1 commit into
mainfrom
fix/289-center-sound-icon
Closed

Seb-GRAF wants to merge 1 commit into
mainfrom
fix/289-center-sound-icon

Conversation

@Seb-GRAF

Copy link
Copy Markdown
Collaborator

Problem

The Sound widget drew its speaker at the leading edge of a box as wide as the three-wave speaker, so muted and zero-volume icons sat about 4 pt left of center.

Fixes #289.

Changes

  • A symbol block with a widestSymbol draws its symbol centered in that width instead of at its leading edge. Only the Sound widget's default layout sets it, so nothing else moves.
  • The width doesn't change, so the widget stays the same size at every level and the inline hover slider from feat: show the volume level in the Sound widget's speaker #160 still doesn't move under the pointer. The speaker shifts about 1.5 pt per level while the icons cross-fade.
  • The widestSymbol doc comment says how the symbol is placed.

No configuration, schema, Settings or guide change: the guide says the icon keeps the width of three waves, which still holds.

Testing

  • swift test: 449 Swift Testing and 294 XCTest tests pass, including the Sound widget's same width at every level.
  • Offscreen renders of the muted, zero and one-, two- and three-wave icons before and after, with the widget's center marked.

Screenshots to follow.

Merging

Any merge; it's one commit.

Claude Opus 5.5 via Claude Code in T3 Code.

@Seb-GRAF

Copy link
Copy Markdown
Collaborator Author

Folded into #292 as its own commit.

@Seb-GRAF Seb-GRAF closed this Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The Sound widget's speaker sits off-center when muted or at zero volume

1 participant