SwitchDefaults

Contains the default values used by Switch

Functions

Link copied to clipboard
@Composable
fun switchColors(): SwitchColors
@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.

Link copied to clipboard
@Composable
fun switchVibrants(): SwitchVibrants
@Composable
fun switchVibrants(trackVibrant: Vibrant = Vibrant.Unspecified, checkedThumbVibrant: Vibrant = Vibrant.Unspecified, uncheckedThumbVibrant: Vibrant = Vibrant.Unspecified): SwitchVibrants

Creates a SwitchVibrants instance with the default vibrants.