InlineSliderDefaults


@ExperimentalWearMaterial3Api
object InlineSliderDefaults


Defaults used by slider.

Summary

Public functions

InlineSliderColors
@Composable
colors(
    containerColor: Color,
    buttonIconColor: Color,
    selectedBarColor: Color,
    unselectedBarColor: Color,
    barSeparatorColor: Color,
    disabledContainerColor: Color,
    disabledButtonIconColor: Color,
    disabledSelectedBarColor: Color,
    disabledUnselectedBarColor: Color,
    disabledBarSeparatorColor: Color
)

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

Public properties

ImageVector

Decrease ImageVector.

Dp

The recommended size for Slider Decrease and Increase button icons.

ImageVector

Increase ImageVector.

Public functions

colors

@Composable
fun colors(
    containerColor: Color = MaterialTheme.colorScheme.surface,
    buttonIconColor: Color = MaterialTheme.colorScheme.secondary,
    selectedBarColor: Color = MaterialTheme.colorScheme.primary,
    unselectedBarColor: Color = MaterialTheme.colorScheme.background.copy(alpha = 0.3f),
    barSeparatorColor: Color = MaterialTheme.colorScheme.primaryDim,
    disabledContainerColor: Color = containerColor.toDisabledColor( disabledAlpha = DisabledContainerAlpha ),
    disabledButtonIconColor: Color = buttonIconColor.toDisabledColor(),
    disabledSelectedBarColor: Color = selectedBarColor.toDisabledColor(),
    disabledUnselectedBarColor: Color = unselectedBarColor.toDisabledColor(),
    disabledBarSeparatorColor: Color = barSeparatorColor.toDisabledColor( disabledAlpha = DisabledContainerAlpha )
): InlineSliderColors

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

Parameters
containerColor: Color = MaterialTheme.colorScheme.surface

The background color of this InlineSlider when enabled

buttonIconColor: Color = MaterialTheme.colorScheme.secondary

The color of the icon of buttons when enabled

selectedBarColor: Color = MaterialTheme.colorScheme.primary

The color of the progress bar when enabled

unselectedBarColor: Color = MaterialTheme.colorScheme.background.copy(alpha = 0.3f)

The background color of the progress bar when enabled

barSeparatorColor: Color = MaterialTheme.colorScheme.primaryDim

The color of separator between visible segments when enabled

disabledContainerColor: Color = containerColor.toDisabledColor( disabledAlpha = DisabledContainerAlpha )

The background color of this InlineSlider when disabled

disabledButtonIconColor: Color = buttonIconColor.toDisabledColor()

The color of the icon of buttons when disabled

disabledSelectedBarColor: Color = selectedBarColor.toDisabledColor()

The color of the progress bar when disabled

disabledUnselectedBarColor: Color = unselectedBarColor.toDisabledColor()

The background color of the progress bar when disabled

disabledBarSeparatorColor: Color = barSeparatorColor.toDisabledColor( disabledAlpha = DisabledContainerAlpha )

The color of separator between visible segments when disabled

Public properties

Decrease

Added in 1.0.0-alpha21
val DecreaseImageVector

Decrease ImageVector.

IconSize

Added in 1.0.0-alpha21
val IconSizeDp

The recommended size for Slider Decrease and Increase button icons.

Increase

Added in 1.0.0-alpha21
val IncreaseImageVector

Increase ImageVector.