Repository navigation
Animate Settings sections and rows as they come and go - #114
Merged
Merged
Conversation
Turning on Enable Voice or All Experiments added sections and rows in one frame, before the switch's thumb had moved, and pushed the rest of the page. settingsSection now gives every section animateItem (fade in on MicroIn, delayed by half of Layout so it lands after the sections below make room; placement on Layout; fade out on MicroOut), as ServerDetailsView's rows do, and the section card animates its size on Layout when rows inside it change. Every Settings page uses settingsSection with keys, so no page needed edits. Verified: vm.sh check :feature:settings passes. On the emulator against session-lab, Voice (Enable Voice on/off, light, and dark at 4x animator scale) and Experimental (All Experiments on/off) frame by frame against v0.8.0; opening Voice and Experimental from Settings plays no stray fade or slide.
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.
In Settings, rows and sections that depend on a switch appeared and disappeared in one frame and pushed the rest of the page. Turning on Enable Voice added Call Setup and two Calls rows at once, and All Experiments added the Volume rows, before the switch's thumb had even moved.
Now every Settings section fades in and out and slides into place as the page changes, with the same roles as Server Details' rows (fade in on MicroIn, placement on Layout, fade out on MicroOut). A new section waits half a Layout before fading in, so the sections below have made room and don't slide over it. A section's card grows and shrinks with its rows on Layout. All of this is in the shared
settingsSectionhelper, and every page already passes keys, so no page needed changes.Checked on the emulator against session-lab, frame by frame against v0.8.0: Voice with Enable Voice on and off (light, and dark at 4x animator scale) and Experimental with All Experiments on and off. Opening Voice and Experimental from Settings plays no stray fade or slide.
scripts/check.sh :feature:settingspasses. Not checked on a phone or with Reduce Motion on.Left alone: rows inside a card still reflow at once while the card grows, so Call History jumps down before the new rows are revealed; and turning Voice off, the Calls section briefly slides over the fading Call Setup. Both last a fraction of a second.
The video shows Enable Voice on and off at real speed, again at 4x slower in dark, then All Experiments on and off: v0.8.0 on the left, this branch on the right.
before-after.mp4