Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import androidx.compose.foundation.interaction.collectIsPressedAsState
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.ui.draw.clip
import androidx.compose.ui.draw.shadow
import androidx.compose.ui.graphics.graphicsLayer
import androidx.compose.material3.ExperimentalMaterial3Api
Expand Down Expand Up @@ -136,7 +137,9 @@ internal fun MarketCapExplainerSlider(
Box(Modifier.fillMaxWidth().height(44.dp), contentAlignment = Alignment.Center) {
SliderDefaults.Track(
sliderState = state,
modifier = Modifier.height(10.dp),
// A square inside corner keeps the fill flush under the thumb, but at the far
// end it would leave the green squared off; clipping to the pill rounds it.
modifier = Modifier.height(10.dp).clip(CircleShape),
colors = colors,
drawStopIndicator = null,
thumbTrackGapSize = 0.dp,
Expand Down
Loading