Repository navigation
feat: show the volume level in the Sound widget's speaker - #160
Merged
Merged
Conversation
With the volume shown only after a change, the speaker now shows how loud it is, with no wave at zero, then one, two or three waves as the volume passes each third, and the crossed-out speaker while muted, as before. A device without a volume control keeps two waves. The Sound widget's icon keeps the width of three waves, its speaker drawn at the leading edge, so the widget doesn't change size between levels and the hover slider doesn't move under the pointer while dragging. Symbol blocks of default layouts can now keep the width of a wider symbol.
|
🎉 This PR is included in version 0.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This was referenced Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Since #157 the Sound widget shows only its speaker at rest, and the speaker always had two waves, so the bar no longer says how loud it is.
Changes
audiosource'siconisspeakerat 0%,speaker.wave.1up to 33%,speaker.wave.2up to 66%, thenspeaker.wave.3. It staysspeaker.slashwhile muted or without an output device. A device without a volume control keepsspeaker.wave.2. The levels use the same rounded percentage the widget shows.speaker.wave.3, with the speaker drawn at its leading edge. The widget doesn't change size between levels, and the hover slider from feat: change the volume with a slider when hovering the Sound widget #158 doesn't move under the pointer when a drag crosses a third. This uses a new internalwidestSymbolon symbol blocks, set by default layouts only, likekeepsLineHeight; configurations can't set it.audiosource'sicon.Surfaces: no configuration property, so the schema, decoders and Settings are unchanged. Custom layouts that draw
iconget the level icons too.Testing
swift test: 275 XCTest tests pass. 387 Swift Testing tests ran, with 8 issues, all inpopupResizesWithItsContentAndKeepsItsWidthAndTopEdge(both animated cases, lines 258 and 262). That's the known failure while the display is asleep, and mine was asleep and locked during the run. CI covers it.Merging
One commit, so any merge method keeps it.
Claude Opus 5.5 via Claude Code