mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 15:29:15 +01:00
delay the tab icon and label colour transition
This commit is contained in:
@@ -713,7 +713,8 @@ private fun TabButton(
|
|||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
) {
|
) {
|
||||||
val selectedContent = artwork?.scheme?.onPrimary ?: MaterialTheme.colorScheme.background
|
val selectedContent = artwork?.scheme?.onPrimary ?: MaterialTheme.colorScheme.background
|
||||||
val content = lerp(MaterialTheme.colorScheme.onBackground, selectedContent, progress)
|
val tintProgress = ((progress - 0.25f) / 0.6f).coerceIn(0f, 1f)
|
||||||
|
val content = lerp(MaterialTheme.colorScheme.onBackground, selectedContent, tintProgress)
|
||||||
Row(
|
Row(
|
||||||
modifier =
|
modifier =
|
||||||
modifier
|
modifier
|
||||||
|
|||||||
Reference in New Issue
Block a user