Repository navigation
feat: show the volume only for a moment after it changes - #157
Merged
Merged
Conversation
The Sound widget showed the volume beside its icon all the time. It now shows only its speaker icon. After the volume or mute state changes, the percentage fades in beside the icon for 1.5 seconds, its digits rolling while it keeps changing, then fades out, and the bar animates the widget's width. Muting hides it at once. Settings > Bar > Content > Display starts sound on "Icon, value on change", its new default, and "Icon and value" now saves that look as a layout. Battery keeps its choices. The audio source adds a `temporary` with `fields.changedVolume` when a read differs from the one before, so custom layouts can do the same; its `text` is still the volume. Every `temporary` output now comes and goes with its widget's animation, unless Reduce Motion is on.
This was referenced Oct 21, 2026
|
🎉 This PR is included in version 0.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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
The Sound widget shows the volume beside its speaker icon all the time. The number matters right after you change the volume; the rest of the time it takes room in the bar.
Changes
numeric) while it keeps changing, then fades out. Muting hides it at once. The bar animates the widget's width as the number comes and goes, as it does for the active app; nothing animates under Reduce Motion.audiosource: when a read's volume or mute state differs from the read before (the same rule asvolumeChange), its output carries atemporarywithfields.changedVolume(62%, empty while muted or without a volume control). The first read carries none, andtextis still the volume, so popups, custom layouts and the overflow menu are unchanged. Custom layouts can usechangedVolumewithhideWhenEmptyfor the same effect.layout. Battery keeps its choices.temporaryoutputs of every widget now come and go with the widget'sanimationinstead of switching instantly.audiosource andtemporary.Surfaces: no new configuration property, so the schema and decoders are unchanged. Settings changes only the Display picker. Includes, templates and profiles reach it through the existing
layout.Testing
swift test: 275 XCTest and 385 Swift Testing tests pass.type: audioand a namedaudioprovider.main)Recording: after-change.gif
Merging
One commit, so any merge method keeps it.
Claude Opus 5.5 via Claude Code