API reference
API reference
Select your platform
No SDKs available
No versions available

SwitchDefaults Object

Contains the default values used by .SpatialSwitch

Signature

object SwitchDefaults

Functions

colors ()
Creates a SwitchColors that represents the different colors used in a .SpatialSwitch in different states.
Signature
fun colors(): SwitchColors
colors ( checkedThumbColor , checkedTrackColor , checkedBorderColor , checkedIconColor , uncheckedThumbColor , uncheckedTrackColor , uncheckedBorderColor , uncheckedIconColor , disabledCheckedThumbColor , disabledCheckedTrackColor , disabledCheckedBorderColor , disabledCheckedIconColor , disabledUncheckedThumbColor , disabledUncheckedTrackColor , disabledUncheckedBorderColor , disabledUncheckedIconColor )
Creates a SwitchColors that represents the different colors used in a .SpatialSwitch in different states.
Signature
fun colors(checkedThumbColor: Color = Color.Unspecified, checkedTrackColor: Color = Color.Unspecified, checkedBorderColor: Color = Color.Unspecified, checkedIconColor: Color = Color.Unspecified, uncheckedThumbColor: Color = Color.Unspecified, uncheckedTrackColor: Color = Color.Unspecified, uncheckedBorderColor: Color = Color.Unspecified, uncheckedIconColor: Color = Color.Unspecified, disabledCheckedThumbColor: Color = Color.Unspecified, disabledCheckedTrackColor: Color = Color.Unspecified, disabledCheckedBorderColor: Color = Color.Unspecified, disabledCheckedIconColor: Color = Color.Unspecified, disabledUncheckedThumbColor: Color = Color.Unspecified, disabledUncheckedTrackColor: Color = Color.Unspecified, disabledUncheckedBorderColor: Color = Color.Unspecified, disabledUncheckedIconColor: Color = Color.Unspecified): SwitchColors
Parameters
checkedThumbColor: Color
the color used for the thumb when enabled and checked
checkedTrackColor: Color
the color used for the track when enabled and checked
checkedBorderColor: Color
the color used for the border when enabled and checked
checkedIconColor: Color
the color used for the icon when enabled and checked
uncheckedThumbColor: Color
the color used for the thumb when enabled and unchecked
uncheckedTrackColor: Color
the color used for the track when enabled and unchecked
uncheckedBorderColor: Color
the color used for the border when enabled and unchecked
uncheckedIconColor: Color
the color used for the icon when enabled and unchecked
disabledCheckedThumbColor: Color
the color used for the thumb when disabled and checked
disabledCheckedTrackColor: Color
the color used for the track when disabled and checked
disabledCheckedBorderColor: Color
the color used for the border when disabled and checked
disabledCheckedIconColor: Color
the color used for the icon when disabled and checked
disabledUncheckedThumbColor: Color
the color used for the thumb when disabled and unchecked
disabledUncheckedTrackColor: Color
the color used for the track when disabled and unchecked
disabledUncheckedBorderColor: Color
the color used for the border when disabled and unchecked
disabledUncheckedIconColor: Color
the color used for the icon when disabled and unchecked
Did you find this page helpful?