mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 13:26:02 +00:00
Inner Gamer: let Compose apply the animator scale once
This commit is contained in:
1 parent
5f341dda16
commit
b88eebe09b
2 files changed
+3
-3
No files matched your search
@@ -33,7 +33,7 @@ theme while it is chosen.
|
||||
`Themes.innerGamer(hue)` builds the palette for one hue through `ThemeColors.palette`, so button text
|
||||
keeps the same contrast along the gradient at every hue. `DroidDeckTheme` runs one
|
||||
`rememberInfiniteTransition` while Inner Gamer is chosen, so the system's animation clock drives it.
|
||||
The duration goes through `Motion.ms`, so the colour holds still when animations are off in the app
|
||||
or in Android's own settings. The hue is written to `Themes.rgbHue` in 3° steps, which restyles the
|
||||
Compose applies Android's animator scale to it, and the colour holds still when animations are off
|
||||
in the app (`Motion.scale`) or in Android's own settings. The hue is written to `Themes.rgbHue` in 3° steps, which restyles the
|
||||
app only when the colour visibly moves; a slow cycle costs few recompositions.
|
||||
|
||||
Reference in new issue
Block a user