Repository navigation
Conversation
Play buttons spin until Spotify visibly reacts. When Spotify answers quickly, the spinner showed for only a few frames (3 frames, about 25 ms, in a 120 fps recording of play/pause with Soloist). That is too short to be read as a spinner: the full dark arc flashed across the disc and looked like an unexplained flicker between Play and Pause. The arc now fades in over the app's animation time (120 ms), so a fast answer leaves only a faint trace while a slow one still shows the whole spinner. It is still gone the frame the button returns, and each wait fades in again from nothing. The general spinner on loading screens is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
[Medium impact] The change appears safe to merge.
|
Why
8bc9f2c "Every play button spins until Spotify visibly reacts" - the intention is good: the button shows immediately that the click was received and is being acted on. But when Spotify answers quickly, the spinning state lasts only a few frames. In a 120 fps screen recording of play/pause with Soloist, the spinner was on screen for 4 frames (33 ms). At that timeframe, it is not recogniseable as a spinner. The full-length arc appears abruptly and is gone immediately after, so it shows up as an unexplained flicker between the Play and Pause icons. The feedback meant to reassure ends up looking like a rendering glitch.
What changed
theme::circle_spinner, the spinner shown while a play (or pause) is pending, now fades its arc in instead of drawing it at full strength on the first frame:motion::ANIMATION_TIME(120 ms), the app's standard animation time.theme::spinner(loading screens, dialogs, device lists) is unchanged.A fast response now leaves at most a faint grey ring for a couple of frames. A slow answer, such as waiting for missing audio key, still shows the full spinner after 120 ms.
The reduced motion OS setting is not considered in this change. The spinner already spun regardless of it, and only the arc's opacity changes now.
Verification
New tests in
theme::tests:a_play_spinner_fades_its_arc_in: the arc is invisible on the spinner's first frame, faint at 60 ms, and fully drawn from 120 ms on.a_play_spinner_starts_over_after_the_button_returns: a spinner that was gone for a frame starts invisible again.Run locally on Windows 10 (x86_64) without the
milkdropfeature:cargo fmt --all --check: clean.cargo test --locked --all-targets --no-default-features --features soloist-native-audio,soloist-preview,demo: all pass (1,837 library tests with 5 ignored, 17 binary tests, and every integration test target).cargo clippywith the same features: no warnings insrc/theme.rs. Its only errors are unused code that only themilkdropfeature uses (app.rs,demo.rs,milkdrop.rs,ui/lyrics.rs,ui/winamp/wmp.rs). CI builds with it.Not tested locally: Linux, macOS and the
--all-features/milkdropbuilds. I'm relying on CI for those.120fps screen recordings + extracted frames
Before

After

CONTRIBUTING.mdand kept this pull request to one concern.CONTRIBUTING.md).github.com/crmnerepositories, and the maintainer approved any added or changed git source.Summary by CodeRabbit