SwitchTheme
Defines default property values for descendant Switch controls.
Properties
mouse_cursor- Overrides the default value of flet.Switch.mouse_cursor in all descendant Switch controls.overlay_color- Overrides the default value of flet.Switch.overlay_color in all descendant Switch controls.padding- Overrides the default value of flet.Switch.padding in all descendant Switch controls.splash_radius- Overrides the default value of flet.Switch.splash_radius in all descendant Switch controls.thumb_color- Overrides the default value of flet.Switch.thumb_color in all descendant Switch controls.thumb_icon- Overrides the default value of flet.Switch.thumb_icon in all descendant Switch controls.track_color- Overrides the default value of flet.Switch.track_color in all descendant Switch controls.track_outline_color- Overrides the default value of flet.Switch.track_outline_color in all descendant Switch controls.track_outline_width- Overrides the default value of flet.Switch.track_outline_width in all descendant Switch controls.
Properties
mouse_cursorclass-attributeinstance-attribute
mouse_cursor: Optional[ControlStateValue[MouseCursor]] = NoneOverrides the default value of flet.Switch.mouse_cursor in all descendant Switch controls.
overlay_colorclass-attributeinstance-attribute
overlay_color: Optional[ControlStateValue[ColorValue]] = NoneOverrides the default value of flet.Switch.overlay_color in all descendant Switch controls.
paddingclass-attributeinstance-attribute
padding: Optional[PaddingValue] = NoneOverrides the default value of flet.Switch.padding in all descendant Switch controls.
splash_radiusclass-attributeinstance-attribute
splash_radius: Optional[Number] = NoneOverrides the default value of flet.Switch.splash_radius in all descendant Switch controls.
thumb_colorclass-attributeinstance-attribute
thumb_color: Optional[ControlStateValue[ColorValue]] = NoneOverrides the default value of flet.Switch.thumb_color in all descendant Switch controls.
thumb_iconclass-attributeinstance-attribute
thumb_icon: Optional[ControlStateValue[IconData]] = NoneOverrides the default value of flet.Switch.thumb_icon in all descendant Switch controls.
track_colorclass-attributeinstance-attribute
track_color: Optional[ControlStateValue[ColorValue]] = NoneOverrides the default value of flet.Switch.track_color in all descendant Switch controls.
track_outline_colorclass-attributeinstance-attribute
track_outline_color: Optional[ControlStateValue[ColorValue]] = NoneOverrides the default value of flet.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 flet.Switch.track_outline_width in all descendant Switch controls.