Skip to content

SwitchTheme

SwitchTheme #

Defines default property values for descendant Switch controls.

mouse_cursor #

mouse_cursor: ControlStateValue[MouseCursor] | None = None

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

overlay_color #

overlay_color: ControlStateValue[ColorValue] | None = None

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

padding #

padding: PaddingValue | None = None

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

splash_radius #

splash_radius: Number | None = None

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

thumb_color #

thumb_color: ControlStateValue[ColorValue] | None = None

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

thumb_icon #

thumb_icon: ControlStateValue[IconValue] | None = None

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

track_color #

track_color: ControlStateValue[ColorValue] | None = None

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

track_outline_color #

track_outline_color: (
    ControlStateValue[ColorValue] | None
) = None

Overrides the default value of Switch.track_outline_color in all descendant Switch controls.

track_outline_width #

track_outline_width: (
    ControlStateValue[Number | None] | None
) = None

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