From c3874ed1c3d7df05f6c18dc452c1f1b7e699f7cc Mon Sep 17 00:00:00 2001 From: austinried <4966622+austinried@users.noreply.github.com> Date: Sun, 27 Sep 2026 11:45:17 +0000 Subject: [PATCH] give the playing indicator a soft halo over art Replace the offset drop copy with a slightly scaled, blurred dark copy so the arrow lifts off busy artwork on all sides. --- .../com/subtracks/ui/library/SongsContent.kt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/subtracks/ui/library/SongsContent.kt b/app/src/main/kotlin/com/subtracks/ui/library/SongsContent.kt index 83a6e30a..95ca6843 100644 --- a/app/src/main/kotlin/com/subtracks/ui/library/SongsContent.kt +++ b/app/src/main/kotlin/com/subtracks/ui/library/SongsContent.kt @@ -5,7 +5,6 @@ import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxWidth -import androidx.compose.foundation.layout.offset import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width import androidx.compose.foundation.shape.RoundedCornerShape @@ -23,8 +22,11 @@ import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.BlurredEdgeTreatment +import androidx.compose.ui.draw.blur import androidx.compose.ui.draw.clip import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.graphicsLayer import androidx.compose.ui.semantics.contentDescription import androidx.compose.ui.semantics.semantics import androidx.compose.ui.text.font.FontWeight @@ -152,8 +154,14 @@ private fun PlayIndicator( Icon( imageVector = Icons.Rounded.PlayArrow, contentDescription = null, - tint = Color.Black.copy(alpha = 0.6f), - modifier = Modifier.matchParentSize().offset(x = 1.dp, y = 1.dp), + tint = Color.Black.copy(alpha = 0.5f), + modifier = + Modifier + .matchParentSize() + .graphicsLayer { + scaleX = 1.35f + scaleY = 1.35f + }.blur(3.dp, BlurredEdgeTreatment.Unbounded), ) } Icon(