SwitchTheme
Defines default property values for descendant Switch controls.
Properties
-
mouse_cursor(Optional[ControlStateValue[MouseCursor]]) –Overrides the default value of
Switch.mouse_cursorin all descendantSwitchcontrols. -
overlay_color(Optional[ControlStateValue[ColorValue]]) –Overrides the default value of
Switch.overlay_color -
padding(Optional[PaddingValue]) –Overrides the default value of
Switch.paddingin all descendantSwitchcontrols. -
splash_radius(Optional[Number]) –Overrides the default value of
Switch.splash_radius -
thumb_color(Optional[ControlStateValue[ColorValue]]) –Overrides the default value of
Switch.thumb_colorin all descendantSwitchcontrols. -
thumb_icon(Optional[ControlStateValue[IconData]]) –Overrides the default value of
Switch.thumb_iconin all descendantSwitchcontrols. -
track_color(Optional[ControlStateValue[ColorValue]]) –Overrides the default value of
Switch.track_colorin all descendantSwitchcontrols. -
track_outline_color(Optional[ControlStateValue[ColorValue]]) –Overrides the default value of
Switch.track_outline_colorin all descendantSwitchcontrols. -
track_outline_width(Optional[ControlStateValue[Optional[Number]]]) –Overrides the default value of
Switch.track_outline_widthin all descendantSwitchcontrols.
Properties#
mouse_cursor
class-attribute
instance-attribute
#
mouse_cursor: Optional[ControlStateValue[MouseCursor]] = (
None
)
Overrides the default value of Switch.mouse_cursor in all descendant Switch controls.
overlay_color
class-attribute
instance-attribute
#
overlay_color: Optional[ControlStateValue[ColorValue]] = (
None
)
Overrides the default value of Switch.overlay_color
in all descendant Switch controls.
padding
class-attribute
instance-attribute
#
padding: Optional[PaddingValue] = None
Overrides the default value of Switch.padding in all descendant Switch controls.
splash_radius
class-attribute
instance-attribute
#
Overrides the default value of Switch.splash_radius
in all descendant Switch controls.
thumb_color
class-attribute
instance-attribute
#
thumb_color: Optional[ControlStateValue[ColorValue]] = None
Overrides the default value of Switch.thumb_color in all descendant Switch controls.
thumb_icon
class-attribute
instance-attribute
#
thumb_icon: Optional[ControlStateValue[IconData]] = None
Overrides the default value of Switch.thumb_icon in all descendant Switch controls.
track_color
class-attribute
instance-attribute
#
track_color: Optional[ControlStateValue[ColorValue]] = None
Overrides the default value of Switch.track_color in all descendant Switch controls.
track_outline_color
class-attribute
instance-attribute
#
track_outline_color: Optional[
ControlStateValue[ColorValue]
] = None
Overrides the default value of Switch.track_outline_color in all descendant Switch controls.
track_outline_width
class-attribute
instance-attribute
#
track_outline_width: Optional[
ControlStateValue[Optional[Number]]
] = None
Overrides the default value of Switch.track_outline_width in all descendant Switch controls.