dim the playing art instead of desaturating it

This commit is contained in:
austinried
2026-10-04 00:30:02 +00:00
parent aa954ffc3e
commit 08eace9e90
@@ -68,7 +68,7 @@ private val PLAY_SHADOW_RADIUS = 3.dp
private val PLAY_SHADOW = Color.Black.copy(alpha = 0.6f)
private val INNER_SHADOW_RADIUS = 8.dp
private val INNER_SHADOW = Color.Black.copy(alpha = 0.85f)
private val DESATURATE = ColorFilter.colorMatrix(ColorMatrix().apply { setToSaturation(0.45f) })
private val DIM = ColorFilter.colorMatrix(ColorMatrix().apply { setToScale(0.6f, 0.6f, 0.6f, 1f) })
private val PLAY_ARROW = Icons.Rounded.PlayArrow
private val PLAY_ARROW_PATH: Path by lazy { buildVectorPath(PLAY_ARROW) }
@@ -171,7 +171,7 @@ private fun CoverArtCell(
ref = ref,
name = name,
modifier = Modifier.size(48.dp).clip(shape),
colorFilter = if (isPlaying) DESATURATE else null,
colorFilter = if (isPlaying) DIM else null,
)
if (isPlaying) {
Box(Modifier.matchParentSize().drawBehind { drawInnerShadow() })