SwitchColors
interface SwitchColors
Represents the content colors used in Switch in different states.
Summary
Public functions |
|
|---|---|
State<Color> |
@ComposableRepresents the thumb color for this |
State<Color> |
@ComposableRepresents the track color for this |
Public functions
thumbColor
Added in 1.1.0
@Composable
fun thumbColor(enabled: Boolean, checked: Boolean): State<Color>
Represents the thumb color for this Switch, depending on the enabled and checked properties.
trackColor
Added in 1.1.0
@Composable
fun trackColor(enabled: Boolean, checked: Boolean): State<Color>
Represents the track color for this Switch, depending on the enabled and checked properties.