InlineSliderDefaults
object InlineSliderDefaults
Defaults used by slider
Summary
Public functions |
|
|---|---|
InlineSliderColors |
@ComposableCreates a |
Public properties |
|
|---|---|
ImageVector |
Decrease |
ImageVector |
Increase |
Public functions
colors
@Composable
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: Color = MaterialTheme.colors.surface |
The background color of this |
spacerColor: Color = MaterialTheme.colors.background |
The color of the spacer between buttons and a progress bar when enabled |
selectedBarColor: Color = MaterialTheme.colors.secondary |
The color of the progress bar when enabled |
unselectedBarColor: Color = MaterialTheme.colors.onSurface.copy(0.1f) |
The background color of the progress bar when enabled |
disabledBackgroundColor: Color = backgroundColor.copy(alpha = ContentAlpha.disabled) |
The background color of this |
disabledSpacerColor: Color = spacerColor.copy(alpha = ContentAlpha.disabled) |
The color of the spacer between buttons and a progress bar when disabled |
disabledSelectedBarColor: Color = selectedBarColor.copy(alpha = ContentAlpha.disabled) |
The color of the progress bar when disabled |
disabledUnselectedBarColor: Color = unselectedBarColor.copy(alpha = 0.05f) |
The background color of the progress bar when disabled |