mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 15:50:16 +02:00
Use neutral color for buffered & remaining seek bar
This commit is contained in:
parent
5682f61b02
commit
808e379e02
1 changed files with 3 additions and 2 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue