Skip to content

Commit

Permalink
refactor: slower miniplayer transition
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Apr 20, 2024
1 parent 5b0aa16 commit 6bc7447
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,11 @@ fun NowPlayingBottomBar(context: ViewContext, insetPadding: Boolean = true) {
targetState = currentSong,
transitionSpec = {
val from = fadeIn(
animationSpec = TransitionDurations.Normal.asTween(delayMillis = 150),
animationSpec = TransitionDurations.Normal.asTween(
delayMillis = TransitionDurations.Normal.milliseconds,
),
)
val to = fadeOut(animationSpec = TransitionDurations.Fast.asTween())
val to = fadeOut(TransitionDurations.Normal.asTween())
from togetherWith to
},
) { song ->
Expand Down

0 comments on commit 6bc7447

Please sign in to comment.