Android
public object InlineSliderDefaults
Defaults used by slider
Functions
colors
@Composable
public fun colors(
backgroundColor: Color = MaterialTheme.colors.surface,
spacerColor: Color = MaterialTheme.colors.background,
selectedBarColor: Color = MaterialTheme.colors.secondary,
unselectedBarColor: Color = MaterialTheme.colors.onSurface.copy(0.1f),
disabledBackgroundColor: Color = backgroundColor.copy(alpha = ContentAlpha.disabled),
disabledSpacerColor: Color = spacerColor.copy(alpha = ContentAlpha.disabled),
disabledSelectedBarColor: Color = selectedBarColor.copy(alpha = ContentAlpha.disabled),
disabledUnselectedBarColor: Color = unselectedBarColor.copy(alpha = 0.05f),
): InlineSliderColors
Creates a InlineSliderColors that represents the default background and content colors used in an InlineSlider.
Parameters
| backgroundColor | The background color of this InlineSlider when enabled |
| spacerColor | The color of the spacer between buttons and a progress bar when enabled |
| selectedBarColor | The color of the progress bar when enabled |
| unselectedBarColor | The background color of the progress bar when enabled |
| disabledBackgroundColor | The background color of this InlineSlider when disabled |
| disabledSpacerColor | The color of the spacer between buttons and a progress bar when disabled |
| disabledSelectedBarColor | The color of the progress bar when disabled |
| disabledUnselectedBarColor | The background color of the progress bar when disabled |