strengthen the inset border shadow

This commit is contained in:
austinried
2026-10-04 00:30:02 +00:00
parent 7555344057
commit c68b631d06
@@ -64,6 +64,8 @@ private val MIN_SMALL_FONT = 8.sp
private val COVER_CORNER = 6.dp private val COVER_CORNER = 6.dp
private val PLAY_SHADOW_RADIUS = 3.dp private val PLAY_SHADOW_RADIUS = 3.dp
private val PLAY_SHADOW = Color.Black.copy(alpha = 0.6f) 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 PLAY_ARROW = Icons.Rounded.PlayArrow private val PLAY_ARROW = Icons.Rounded.PlayArrow
private val PLAY_ARROW_PATH: Path by lazy { buildVectorPath(PLAY_ARROW) } private val PLAY_ARROW_PATH: Path by lazy { buildVectorPath(PLAY_ARROW) }
@@ -202,7 +204,7 @@ private fun DrawScope.drawInnerShadow() {
android.graphics.Paint().apply { android.graphics.Paint().apply {
isAntiAlias = true isAntiAlias = true
color = android.graphics.Color.BLACK color = android.graphics.Color.BLACK
setShadowLayer(PLAY_SHADOW_RADIUS.toPx(), 0f, 0f, PLAY_SHADOW.toArgb()) setShadowLayer(INNER_SHADOW_RADIUS.toPx(), 0f, 0f, INNER_SHADOW.toArgb())
} }
canvas.nativeCanvas.drawPath(ring.asAndroidPath(), paint) canvas.nativeCanvas.drawPath(ring.asAndroidPath(), paint)
} }