SwitchTheme
Defines default property values for descendant Switch controls.
Properties
mouse_cursor- Overrides the default value ofSwitch.mouse_cursorin all descendantSwitchcontrols.overlay_color- Overrides the default value ofSwitch.overlay_colorin all descendantSwitchcontrols.padding- Overrides the default value ofSwitch.paddingin all descendantSwitchcontrols.splash_radius- Overrides the default value ofSwitch.splash_radiusin all descendantSwitchcontrols.thumb_color- Overrides the default value ofSwitch.thumb_colorin all descendantSwitchcontrols.thumb_icon- Overrides the default value ofSwitch.thumb_iconin all descendantSwitchcontrols.track_color- Overrides the default value ofSwitch.track_colorin all descendantSwitchcontrols.track_outline_color- Overrides the default value ofSwitch.track_outline_colorin all descendantSwitchcontrols.track_outline_width- Overrides the default value ofSwitch.track_outline_widthin all descendantSwitchcontrols.
Properties
mouse_cursorclass-attributeinstance-attribute
mouse_cursor: Optional[ControlStateValue[MouseCursor]] = NoneOverrides the default value of Switch.mouse_cursor in all descendant Switch controls.
overlay_colorclass-attributeinstance-attribute
overlay_color: Optional[ControlStateValue[ColorValue]] = NoneOverrides the default value of Switch.overlay_color
in all descendant Switch controls.
paddingclass-attributeinstance-attribute
padding: Optional[PaddingValue] = NoneOverrides the default value of Switch.padding in all descendant Switch controls.
splash_radiusclass-attributeinstance-attribute
splash_radius: Optional[Number] = NoneOverrides the default value of Switch.splash_radius
in all descendant Switch controls.
thumb_colorclass-attributeinstance-attribute
thumb_color: Optional[ControlStateValue[ColorValue]] = NoneOverrides the default value of Switch.thumb_color in all descendant Switch controls.
thumb_iconclass-attributeinstance-attribute
thumb_icon: Optional[ControlStateValue[IconData]] = NoneOverrides the default value of Switch.thumb_icon in all descendant Switch controls.
track_colorclass-attributeinstance-attribute
track_color: Optional[ControlStateValue[ColorValue]] = NoneOverrides the default value of Switch.track_color in all descendant Switch controls.
track_outline_colorclass-attributeinstance-attribute
track_outline_color: Optional[ControlStateValue[ColorValue]] = NoneOverrides the default value of Switch.track_outline_color in all descendant Switch controls.
track_outline_widthclass-attributeinstance-attribute
track_outline_width: Optional[ControlStateValue[Optional[Number]]] = NoneOverrides the default value of Switch.track_outline_width in all descendant Switch controls.