Repository navigation
feat(session): slide the background work popover into its pill as one outline - #332
Merged
Merged
Conversation
… outline Closing the popover faded and shrank it above the pill, and the two kept separate borders and shadows. Now it slides down into the pill, narrowing to the pill's width, and a pull moves it the same way and keeps its speed when let go. While it is open the popover and the pill share one fill, border and shadow: two outlines at rest, one once they touch, with the corners between them closing up and the step between their widths rounding. Rows fade as they reach the pill. Rows are 40 dp tall instead of 48 dp, so the Stop button's target is 44 x 40 dp, under the 48 dp rule. Reduce Motion keeps the popover as its own surface with the short fade. BackgroundWorkMotion.presentScale is removed. Verified with scripts/check.sh :feature:session on the VM, and on the VM emulator against session-lab: open, close on the pill, pull to close, closing while still opening, rows arriving while open, a twelve-row list and Reduce Motion. motion-check at 5x slow motion flagged no jump or stall in open, tap close or pull close, 3 of 3 repeats.
The popover's rows were 40 dp tall because each held a 28 dp outlined stop button. Rows are now 32 dp and Stop is the desktop's plain X, so the list reads as a list instead of a column of buttons. The Stop target is 34 x 32 dp, under the 48 dp rule. Verified with scripts/check.sh :feature:session and on the VM emulator against session-lab: light and dark, six rows, and the X ending a shell.
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.
Closing the background work popover faded and shrank it above the pill, and the popover and the pill kept separate borders and shadows. Its rows were also tall, each holding an outlined stop button.
Now the popover slides down into the pill, narrowing to its width, and the two are drawn as one shape with one border and one shadow. Rows are compact, and Stop is the desktop's plain X.
before-after-x.mp4
Motion.panelOpenandMotion.panelClose.Verified with
scripts/check.sh :feature:sessionand on the emulator against session-lab: open, close on the pill, pull to close, closing while still opening, rows arriving while open, a twelve-row list, dark mode, the X ending a shell, and Reduce Motion. Not checked on a phone.