switchColors

@Composable
fun switchColors(): SwitchColors

Creates a SwitchColors instance with the default colors.


@Composable
fun switchColors(checkedThumbColor: Color = Color.Unspecified, checkedTrackColor: Color = Color.Unspecified, checkedTrackShadowColor: Color = Color.Unspecified, uncheckedThumbColor: Color = Color.Unspecified, uncheckedTrackColor: Color = Color.Unspecified, uncheckedTrackShadowColor: Color = Color.Unspecified): SwitchColors

Creates a SwitchColors instance with the default colors.

Parameters

checkedThumbColor

the color used for the thumb when checked

checkedTrackColor

the color used for the track when checked

checkedTrackShadowColor

the color used for the shadow checked

uncheckedThumbColor

the color used for the thumb when unchecked

uncheckedTrackColor

the color used for the track when unchecked

uncheckedTrackShadowColor

the color used for the shadow when unchecked