InlineSliderDefaults

object InlineSliderDefaults


Defaults used by slider

Summary

Public functions

@Composable InlineSliderColors
colors(
    backgroundColor: Color?,
    spacerColor: Color?,
    selectedBarColor: Color?,
    unselectedBarColor: Color?,
    disabledBackgroundColor: Color?,
    disabledSpacerColor: Color?,
    disabledSelectedBarColor: Color?,
    disabledUnselectedBarColor: Color?
)

Creates a InlineSliderColors that represents the default background and content colors used in an InlineSlider.

Public properties

ImageVector

A decrease Icon.

ImageVector

An increase Icon.

Public functions

colors

@Composable
fun colors(
    backgroundColor: Color? = MaterialTheme.colors.surface,
    spacerColor: Color? = MaterialTheme.colors.background,
    selectedBarColor: Color? = MaterialTheme.colors.secondary,
    unselectedBarColor: Color? = MaterialTheme.colors.onSurface.copy(0.1f),
    disabledBackgroundColor: Color? = backgroundColor.copy(alpha = ContentAlpha.disabled),
    disabledSpacerColor: Color? = spacerColor.copy(alpha = ContentAlpha.disabled),
    disabledSelectedBarColor: Color? = selectedBarColor.copy(alpha = ContentAlpha.disabled),
    disabledUnselectedBarColor: Color? = unselectedBarColor.copy(alpha = 0.05f)
): InlineSliderColors

Creates a InlineSliderColors that represents the default background and content colors used in an InlineSlider.

Parameters
backgroundColor: Color? = MaterialTheme.colors.surface

The background color of this InlineSlider when enabled

spacerColor: Color? = MaterialTheme.colors.background

The color of the spacer between buttons and a progress bar when enabled

selectedBarColor: Color? = MaterialTheme.colors.secondary

The color of the progress bar when enabled

unselectedBarColor: Color? = MaterialTheme.colors.onSurface.copy(0.1f)

The background color of the progress bar when enabled

disabledBackgroundColor: Color? = backgroundColor.copy(alpha = ContentAlpha.disabled)

The background color of this InlineSlider when disabled

disabledSpacerColor: Color? = spacerColor.copy(alpha = ContentAlpha.disabled)

The color of the spacer between buttons and a progress bar when disabled

disabledSelectedBarColor: Color? = selectedBarColor.copy(alpha = ContentAlpha.disabled)

The color of the progress bar when disabled

disabledUnselectedBarColor: Color? = unselectedBarColor.copy(alpha = 0.05f)

The background color of the progress bar when disabled

Public properties

DecreaseIcon

val DecreaseIconImageVector

A decrease Icon.

IncreaseIcon

val IncreaseIconImageVector

An increase Icon.