Use neutral color for buffered & remaining seek bar

This commit is contained in:
Damontecres 2025-10-28 21:49:43 -04:00
parent 5682f61b02
commit 808e379e02
No known key found for this signature in database

View file

@ -155,6 +155,7 @@ fun SeekBarDisplay(
enabled: Boolean = true, enabled: Boolean = true,
) { ) {
val color = MaterialTheme.colorScheme.border val color = MaterialTheme.colorScheme.border
val onSurface = MaterialTheme.colorScheme.onSurface
val isFocused by interactionSource.collectIsFocusedAsState() val isFocused by interactionSource.collectIsFocusedAsState()
val animatedIndicatorHeight by animateDpAsState( val animatedIndicatorHeight by animateDpAsState(
@ -193,14 +194,14 @@ fun SeekBarDisplay(
onDraw = { onDraw = {
val yOffset = size.height.div(2) val yOffset = size.height.div(2)
drawLine( drawLine(
color = color.copy(alpha = 0.15f), color = onSurface.copy(alpha = 0.25f),
start = Offset(x = 0f, y = yOffset), start = Offset(x = 0f, y = yOffset),
end = Offset(x = size.width, y = yOffset), end = Offset(x = size.width, y = yOffset),
strokeWidth = size.height, strokeWidth = size.height,
cap = StrokeCap.Round, cap = StrokeCap.Round,
) )
drawLine( drawLine(
color = color.copy(alpha = 0.50f), color = onSurface.copy(alpha = .65f),
start = Offset(x = 0f, y = yOffset), start = Offset(x = 0f, y = yOffset),
end = end =
Offset( Offset(