Skip to main content

SwitchTheme

Defines default property values for descendant Switch controls.

Properties

Properties

mouse_cursorclass-attributeinstance-attribute

mouse_cursor: Optional[ControlStateValue[MouseCursor]] = None

Overrides the default value of flet.Switch.mouse_cursor in all descendant Switch controls.

overlay_colorclass-attributeinstance-attribute

overlay_color: Optional[ControlStateValue[ColorValue]] = None

Overrides the default value of flet.Switch.overlay_color in all descendant Switch controls.

paddingclass-attributeinstance-attribute

padding: Optional[PaddingValue] = None

Overrides the default value of flet.Switch.padding in all descendant Switch controls.

splash_radiusclass-attributeinstance-attribute

splash_radius: Optional[Number] = None

Overrides the default value of flet.Switch.splash_radius in all descendant Switch controls.

thumb_colorclass-attributeinstance-attribute

thumb_color: Optional[ControlStateValue[ColorValue]] = None

Overrides the default value of flet.Switch.thumb_color in all descendant Switch controls.

thumb_iconclass-attributeinstance-attribute

thumb_icon: Optional[ControlStateValue[IconData]] = None

Overrides the default value of flet.Switch.thumb_icon in all descendant Switch controls.

track_colorclass-attributeinstance-attribute

track_color: Optional[ControlStateValue[ColorValue]] = None

Overrides the default value of flet.Switch.track_color in all descendant Switch controls.

track_outline_colorclass-attributeinstance-attribute

track_outline_color: Optional[ControlStateValue[ColorValue]] = None

Overrides 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]]] = None

Overrides the default value of flet.Switch.track_outline_width in all descendant Switch controls.