InlineSliderColors

interface InlineSliderColors


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

Summary

Public functions

State<Color>

Represents the background color for this slider, depending on enabled.

State<Color>
@Composable
barColor(enabled: Boolean, selected: Boolean)

Represents the color of the progress bar in the middle of the slider, depending on the enabled and selected.

State<Color>

Represents the color of the spacer between buttons and a progress bar, depending on the enabled

Public functions

backgroundColor

Added in 1.0.0
@Composable
fun backgroundColor(enabled: Boolean): State<Color>

Represents the background color for this slider, depending on enabled.

Parameters
enabled: Boolean

Whether the slider is enabled

barColor

Added in 1.0.0
@Composable
fun barColor(enabled: Boolean, selected: Boolean): State<Color>

Represents the color of the progress bar in the middle of the slider, depending on the enabled and selected.

Parameters
enabled: Boolean

Whether the slider is enabled

selected: Boolean

Whether color is for selected part of the slider

spacerColor

Added in 1.0.0
@Composable
fun spacerColor(enabled: Boolean): State<Color>

Represents the color of the spacer between buttons and a progress bar, depending on the enabled

Parameters
enabled: Boolean

Whether the slider is enabled