SplitToggleChipColors

interface SplitToggleChipColors


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

Summary

Public functions

State<Color>

Represents the background color for this chip, depending on whether it is enabled.

State<Color>

Represents the content color for this chip, depending on whether it is enabled

State<Color>

Represents the secondary content color for this chip, depending on whether it is enabled

State<Color>

Represents the overlay to apply to a split background SplitToggleChip to distinguish between the two tappable areas.

State<Color>

Represents the color for the toggle control content for this chip, depending on the enabled and checked properties.

Public functions

backgroundColor

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

Represents the background color for this chip, depending on whether it is enabled.

Parameters
enabled: Boolean

Whether the chip is enabled

contentColor

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

Represents the content color for this chip, depending on whether it is enabled

Parameters
enabled: Boolean

Whether the chip is enabled

secondaryContentColor

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

Represents the secondary content color for this chip, depending on whether it is enabled

Parameters
enabled: Boolean

Whether the chip is enabled

splitBackgroundOverlay

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

Represents the overlay to apply to a split background SplitToggleChip to distinguish between the two tappable areas. The overlay will be applied to "lighten" the background of area under the toggle control, depending on the enabled and checked properties.

Parameters
enabled: Boolean

Whether the chip is enabled

checked: Boolean

Whether the chip is currently checked or unchecked

toggleControlColor

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

Represents the color for the toggle control content for this chip, depending on the enabled and checked properties.

Parameters
enabled: Boolean

Whether the chip is enabled

checked: Boolean

Whether the chip is currently checked or unchecked