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.