switchColors

@Composable
fun switchColors(): SwitchColors

Creates a SwitchColors instance with the default colors.


@Composable
fun switchColors(checkedThumbColor: Color = Color.Unspecified, checkedTrackColor: Color = Color.Unspecified, uncheckedThumbColor: Color = Color.Unspecified, uncheckedTrackColor: 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

uncheckedThumbColor

the color used for the thumb when unchecked

uncheckedTrackColor

the color used for the track when unchecked