class SliderColors


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

Summary

Public constructors

SliderColors(
    containerColor: Color,
    buttonIconColor: Color,
    selectedBarColor: Color,
    unselectedBarColor: Color,
    selectedBarSeparatorColor: Color,
    unselectedBarSeparatorColor: Color,
    disabledContainerColor: Color,
    disabledButtonIconColor: Color,
    disabledSelectedBarColor: Color,
    disabledUnselectedBarColor: Color,
    disabledSelectedBarSeparatorColor: Color,
    disabledUnselectedBarSeparatorColor: Color
)

create an instance with arbitrary colors.

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Color

The color of the icon of buttons when enabled.

Color

The background color of this Slider when enabled.

Color

The color of the icon of buttons when disabled.

Color

The background color of this Slider when disabled.

Color

The color of the progress bar when disabled.

Color

The color of selected separator between visible segments when disabled.

Color

The background color of the progress bar when disabled.

Color

The color of unselected separator between visible segments when disabled.

Color

The color of the progress bar when enabled.

Color

The color of selected separator between visible segments when enabled.

Color

The background color of the progress bar when enabled.

Color

The color of unselected separator between visible segments when enabled.

Public constructors

SliderColors

SliderColors(
    containerColor: Color,
    buttonIconColor: Color,
    selectedBarColor: Color,
    unselectedBarColor: Color,
    selectedBarSeparatorColor: Color,
    unselectedBarSeparatorColor: Color,
    disabledContainerColor: Color,
    disabledButtonIconColor: Color,
    disabledSelectedBarColor: Color,
    disabledUnselectedBarColor: Color,
    disabledSelectedBarSeparatorColor: Color,
    disabledUnselectedBarSeparatorColor: Color
)

create an instance with arbitrary colors. See SliderDefaults.sliderColors for the default implementation that follows Material specifications.

Parameters
containerColor: Color

The background color of this Slider when enabled.

buttonIconColor: Color

The color of the icon of buttons when enabled.

selectedBarColor: Color

The color of the progress bar when enabled.

unselectedBarColor: Color

The background color of the progress bar when enabled.

selectedBarSeparatorColor: Color

The color of selected separator between visible segments when enabled.

unselectedBarSeparatorColor: Color

The color of unselected separator between visible segments when enabled.

disabledContainerColor: Color

The background color of this Slider when disabled.

disabledButtonIconColor: Color

The color of the icon of buttons when disabled.

disabledSelectedBarColor: Color

The color of the progress bar when disabled.

disabledUnselectedBarColor: Color

The background color of the progress bar when disabled.

disabledSelectedBarSeparatorColor: Color

The color of selected separator between visible segments when disabled.

disabledUnselectedBarSeparatorColor: Color

The color of unselected separator between visible segments when disabled.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

buttonIconColor

Added in 1.0.0-alpha26
val buttonIconColorColor

The color of the icon of buttons when enabled.

containerColor

Added in 1.0.0-alpha26
val containerColorColor

The background color of this Slider when enabled.

disabledButtonIconColor

Added in 1.0.0-alpha26
val disabledButtonIconColorColor

The color of the icon of buttons when disabled.

disabledContainerColor

Added in 1.0.0-alpha26
val disabledContainerColorColor

The background color of this Slider when disabled.

disabledSelectedBarColor

Added in 1.0.0-alpha26
val disabledSelectedBarColorColor

The color of the progress bar when disabled.

disabledSelectedBarSeparatorColor

Added in 1.0.0-alpha26
val disabledSelectedBarSeparatorColorColor

The color of selected separator between visible segments when disabled.

disabledUnselectedBarColor

Added in 1.0.0-alpha26
val disabledUnselectedBarColorColor

The background color of the progress bar when disabled.

disabledUnselectedBarSeparatorColor

Added in 1.0.0-alpha26
val disabledUnselectedBarSeparatorColorColor

The color of unselected separator between visible segments when disabled.

selectedBarColor

Added in 1.0.0-alpha26
val selectedBarColorColor

The color of the progress bar when enabled.

selectedBarSeparatorColor

Added in 1.0.0-alpha26
val selectedBarSeparatorColorColor

The color of selected separator between visible segments when enabled.

unselectedBarColor

Added in 1.0.0-alpha26
val unselectedBarColorColor

The background color of the progress bar when enabled.

unselectedBarSeparatorColor

Added in 1.0.0-alpha26
val unselectedBarSeparatorColorColor

The color of unselected separator between visible segments when enabled.