Skip to content

Animate the answer bar and dictation buttons like the composer's button - #128

Merged
Tarquinen merged 1 commit into
devfrom
answer-bar-button-motion
Nov 18, 2026
Merged

Tarquinen merged 1 commit into
devfrom
answer-bar-button-motion

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

While a question or permission was docked, the answer bar's button snapped from grey to black in one frame, had no press, and Deny cut from the word to a spinner in one frame. In the dictation bar, Stop and Send had no press, and Stop cut to a spinner and back in one frame.

Now these buttons reuse the composer button's pieces from #110. The answer button blends its colours. Both bars' buttons press. Deny and Dismiss swap between the word and the spinner with MotionSwap, and the dictation bar's glyph grows in and out of the spinner like the composer's (controlGlyphSwap). Reduce motion swaps at once.

  • scripts/check.sh :feature:session passed.
  • Emulator against session-lab, light and dark, checked frame by frame, plus animator scale 0.
  • Not yet checked on a phone.

Left for later: the request dock's own buttons (Allow Once and the rest) still cut between label and spinner, and the swap between the composer and the answer bar is still a hard cut.

Videos, before on the left and after on the right, zoomed 2×: the question and permission bars at real speed, then with animations at 1/4 speed, then the dictation bar at real speed and slowed to 1/4. The Deny spinner only lives about 100 ms before the bar leaves, so the after side shows the press and no spinner flash. The emulator renders in software, so real-speed motion looks choppier than on a phone.

answer-bar-before-after.mp4
dictation-before-after.mp4

While a question or permission was docked, the answer bar's button
snapped from grey to black in one frame, had no press, and Deny/Dismiss
cut from the word to a spinner in one frame. The dictation bar's Stop
and Send had no press, and Stop cut to a spinner and back in one frame.

Now they reuse the composer button's pieces from 7d89557: the answer
button blends its colours on Motion.swap, both bars' buttons press with
motionPress, Deny/Dismiss swap word and spinner with MotionSwap, and the
dictation bar's glyph grows in and out of the spinner with
controlGlyphSwap (ControlGlyph and controlGlyphSwap are now internal).

Verified: vm.sh check :feature:session passes. On the emulator against
session-lab, before (dev) and after, frame by frame: the question bar's
button blends black <-> grey both ways in light and dark, Deny presses
and no longer flashes a spinner, the dictation Stop swaps square ->
spinner -> square with the grow/shrink in light and dark, and with
animator scale 0 every swap is instant. Not checked on a phone.
@Tarquinen
Tarquinen merged commit 957dde5 into dev Nov 18, 2026
3 checks passed
@Tarquinen Tarquinen mentioned this pull request Nov 18, 2026

This branch was previously deployed

1 inactive deployment
release — 8161c5f1 Deployed Nov 17, 2026 by Tarquinen via check #411
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.

1 participant