Skip to main content

Module switch

Module switch 

Source
Available on crate feature switch only.
Expand description

On/off switches for settings that apply immediately.

Structs§

Colours
Track, thumb and label colours of a switch.
Switch
A switch builder. Convert it into an Element to render.

Enums§

Action
What a switch keyboard shortcut does. Useful when the app tracks which switch is current.

Constants§

TRACK_HEIGHT
Height of the switch track in logical pixels. The track is twice as wide.

Functions§

colours
Resolves the colours of a switch for an interaction status.
default_keymap
The default switch shortcuts:
style
The iced toggler style for a status.
switch
Creates a switch that is on when is_on is true.