Skip to content

Motion: dithered accent wipe between screens, plus in-screen animations - #42

Merged
gabrielbr merged 1 commit into
mainfrom
ccr-67ccb970-dqwwqd
Oct 23, 2026
Merged

gabrielbr merged 1 commit into
mainfrom
ccr-67ccb970-dqwwqd

Conversation

@gabrielbr

Copy link
Copy Markdown
Owner

Screen transition (theme/DitherTransition.kt)

  • Every destination now dissolves in through the app's 4×4 Bayer dither, along a gradient that sweeps from top to bottom. The front edge of the sweep glitters in the accent colour. The transition lasts 420 ms with fast-out-slow-in easing.
  • Both screens are drawn from one mask. The incoming screen keeps the cells the sweep has passed (DstIn) and the outgoing screen keeps the rest (DstOut). The picture is therefore identical whichever screen the navigator draws on top, and it draws the outgoing one on top for a back press.
  • NavHost's own transitions are a 0.99-alpha fade. They exist only to keep both screens composed for the duration.
  • Destinations go through screen(...) / paddedComposable(...) in PulseLoopApp.
  • Fairy mode uses a smooth gradient mask and a soft glow instead, consistent with the rest of the dither.

In-screen motion (theme/Motion.kt)

  • sweepIn fills rings and gauges from empty on first show and glides between values. It covers the score rings (whose numbers count up with the fill), the activity rings, the vital gauges and the Activity progress rings.
  • pressScale presses a tappable card in to 97%. It is used on Today tiles and on the "+ Log" sheet options.
  • My Health's collapsible sections expand and collapse, and their chevron rotates.
  • The "+ Log" sheet slides between its steps.
  • The "+ Log" button scales in and out across tabs.

Everything runs on Compose's animation clock, so the system "Remove animations" setting turns it all off. AGENTS.md gains a short Motion section.


Generated by Claude Code

…ill in, sections and the Log sheet animate, press feedback on cards

Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
@gabrielbr
gabrielbr merged commit ddf303f into main Oct 23, 2026
2 checks passed
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.

2 participants