public object SliderDefaults
Defaults used by slider.
Functions
DecreaseIcon
@Composable
public fun DecreaseIcon(
modifier: Modifier = Modifier,
contentDescription: String = decreaseIconContentDescription,
): Unit
The recommended decrease icon.
Parameters
| modifier | Modifier to be applied to the decrease icon. |
| contentDescription | The content description for the decrease icon. |
IncreaseIcon
@Composable
public fun IncreaseIcon(
modifier: Modifier = Modifier,
contentDescription: String = increaseIconContentDescription,
): Unit
The recommended increase icon.
Parameters
| modifier | Modifier to be applied to the increase icon. |
| contentDescription | The content description for the increase icon. |
sliderColors
@Composable
public fun sliderColors(): SliderColors
Creates a SliderColors that represents the default background and content colors used in an Slider.
sliderColors
@Composable
public fun sliderColors(
containerColor: Color = Color.Unspecified,
buttonIconColor: Color = Color.Unspecified,
selectedBarColor: Color = Color.Unspecified,
unselectedBarColor: Color = Color.Unspecified,
selectedBarSeparatorColor: Color = Color.Unspecified,
unselectedBarSeparatorColor: Color = Color.Unspecified,
disabledContainerColor: Color = Color.Unspecified,
disabledButtonIconColor: Color = Color.Unspecified,
disabledSelectedBarColor: Color = Color.Unspecified,
disabledUnselectedBarColor: Color = Color.Unspecified,
disabledSelectedBarSeparatorColor: Color = Color.Unspecified,
disabledUnselectedBarSeparatorColor: Color = Color.Unspecified,
): SliderColors
Creates a SliderColors that represents the default background and content colors used in an Slider.
Parameters
| containerColor | The background color of this Slider when enabled |
| buttonIconColor | The color of the icon of buttons when enabled |
| selectedBarColor | The color of the progress bar when enabled |
| unselectedBarColor | The background color of the progress bar when enabled |
| selectedBarSeparatorColor | The color of separator between visible segments within the selected portion of the bar when enabled |
| unselectedBarSeparatorColor | The color of unselected separator between visible segments within the unselected portion of the bar when enabled |
| disabledContainerColor | The background color of this Slider when disabled |
| disabledButtonIconColor | The color of the icon of buttons when disabled |
| disabledSelectedBarColor | The color of the progress bar when disabled |
| disabledUnselectedBarColor | The background color of the progress bar when disabled |
| disabledSelectedBarSeparatorColor | The color of selected separator between visible segments when disabled |
| disabledUnselectedBarSeparatorColor | The color of unselected separator between visible segments when disabled |
variantSliderColors
@Composable
public fun variantSliderColors(): SliderColors
Creates a SliderColors as an alternative to the default colors, providing a visual indication of value changes within a Slider.
Example of a slider uses variantSliderColors when its value is different from the initial value:
variantSliderColors
@Composable
public fun variantSliderColors(
containerColor: Color = Color.Unspecified,
buttonIconColor: Color = Color.Unspecified,
selectedBarColor: Color = Color.Unspecified,
unselectedBarColor: Color = Color.Unspecified,
selectedBarSeparatorColor: Color = Color.Unspecified,
unselectedBarSeparatorColor: Color = Color.Unspecified,
disabledContainerColor: Color = Color.Unspecified,
disabledButtonIconColor: Color = Color.Unspecified,
disabledSelectedBarColor: Color = Color.Unspecified,
disabledUnselectedBarColor: Color = Color.Unspecified,
disabledSelectedBarSeparatorColor: Color = Color.Unspecified,
disabledUnselectedBarSeparatorColor: Color = Color.Unspecified,
): SliderColors
Creates a SliderColors as an alternative to the default colors, providing a visual indication of value changes within a Slider.
Example of a slider uses variantSliderColors when its value is different from the initial value:
Parameters
| containerColor | The background color of this Slider when enabled |
| buttonIconColor | The color of the icon of buttons when enabled |
| selectedBarColor | The color of the progress bar when enabled |
| unselectedBarColor | The background color of the progress bar when enabled |
| selectedBarSeparatorColor | The color of separator between visible segments within the selected portion of the bar when enabled |
| unselectedBarSeparatorColor | The color of unselected separator between visible segments within the unselected portion of the bar when enabled |
| disabledContainerColor | The background color of this Slider when disabled |
| disabledButtonIconColor | The color of the icon of buttons when disabled |
| disabledSelectedBarColor | The color of the progress bar when disabled |
| disabledUnselectedBarColor | The background color of the progress bar when disabled |
| disabledSelectedBarSeparatorColor | The color of selected separator between visible segments when disabled |
| disabledUnselectedBarSeparatorColor | The color of unselected separator between visible segments when disabled |