Repository navigation
Animate the answer bar and dictation buttons like the composer's button - #128
Merged
Merged
Conversation
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.
Closed
This branch was previously deployed
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.
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:sessionpassed.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