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

containerColorThe background color of this Slider when enabled.
buttonIconColorThe color of the icon of buttons when enabled.
selectedBarColorThe color of the progress bar when enabled.
unselectedBarColorThe background color of the progress bar when enabled.
selectedBarSeparatorColorThe color of selected separator between visible segments when enabled.
unselectedBarSeparatorColorThe color of unselected separator between visible segments when enabled.
disabledContainerColorThe background color of this Slider when disabled.
disabledButtonIconColorThe color of the icon of buttons when disabled.
disabledSelectedBarColorThe color of the progress bar when disabled.
disabledUnselectedBarColorThe background color of the progress bar when disabled.
disabledSelectedBarSeparatorColorThe color of selected separator between visible segments when disabled.
disabledUnselectedBarSeparatorColorThe 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

containerColorThe background color of this Slider when enabled.
buttonIconColorThe color of the icon of buttons when enabled.
selectedBarColorThe color of the progress bar when enabled.
unselectedBarColorThe background color of the progress bar when enabled.
selectedBarSeparatorColorThe color of selected separator between visible segments when enabled.
unselectedBarSeparatorColorThe color of unselected separator between visible segments when enabled.
disabledContainerColorThe background color of this Slider when disabled.
disabledButtonIconColorThe color of the icon of buttons when disabled.
disabledSelectedBarColorThe color of the progress bar when disabled.
disabledUnselectedBarColorThe background color of the progress bar when disabled.
disabledSelectedBarSeparatorColorThe color of selected separator between visible segments when disabled.
disabledUnselectedBarSeparatorColorThe color of unselected separator between visible segments when disabled.