ToggleButtonColors
interface ToggleButtonColors
Represents the background and content colors used in a toggle button in different states.
See ToggleButtonDefaults.toggleButtonColors for the default colors used, which are primary-styled for a checked toggle button and surface-styled for unchecked.
Summary
Public functions |
|
|---|---|
State<Color> |
@ComposableRepresents the background color for this toggle button, depending on |
State<Color> |
@ComposableRepresents the content color for this toggle button, depending on |
Public functions
backgroundColor
@Composable
fun backgroundColor(enabled: Boolean, checked: Boolean): State<Color>
Represents the background color for this toggle button, depending on enabled and checked.
contentColor
@Composable
fun contentColor(enabled: Boolean, checked: Boolean): State<Color>
Represents the content color for this toggle button, depending on enabled and checked.