SliderColors

Class
Android
public class SliderColors(
    public val containerColor: Color,
    public val buttonIconColor: Color,
    public val selectedBarColor: Color,
    public val unselectedBarColor: Color,
    public val selectedBarSeparatorColor: Color,
    public val unselectedBarSeparatorColor: Color,
    public val disabledContainerColor: Color,
    public val disabledButtonIconColor: Color,
    public val disabledSelectedBarColor: Color,
    public val disabledUnselectedBarColor: Color,
    public val disabledSelectedBarSeparatorColor: Color,
    public val disabledUnselectedBarSeparatorColor: Color,
)

Represents the background and content colors used in Slider in different states.

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 selected separator between visible segments when enabled.
unselectedBarSeparatorColor The color of unselected separator between visible segments 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.

Functions

public fun copy(
        containerColor: Color = this.containerColor,
        buttonIconColor: Color = this.buttonIconColor,
        selectedBarColor: Color = this.selectedBarColor,
        unselectedBarColor: Color = this.unselectedBarColor,
        selectedBarSeparatorColor: Color = this.selectedBarSeparatorColor,
        unselectedBarSeparatorColor: Color = this.unselectedBarSeparatorColor,
        disabledContainerColor: Color = this.disabledContainerColor,
        disabledButtonIconColor: Color = this.disabledButtonIconColor,
        disabledSelectedBarColor: Color = this.disabledSelectedBarColor,
        disabledUnselectedBarColor: Color = this.disabledUnselectedBarColor,
        disabledSelectedBarSeparatorColor: Color = this.disabledSelectedBarSeparatorColor,
        disabledUnselectedBarSeparatorColor: Color = this.disabledUnselectedBarSeparatorColor,
    ): SliderColors

Returns a copy of this SliderColors optionally overriding some of the values.

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 selected separator between visible segments when enabled.
unselectedBarSeparatorColor The color of unselected separator between visible segments 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.