Expand description
Shared switches and the layout for independent boolean options.
Modules§
- track
- The switch contrast rule: the outline of an off track, an on track and the knob each keep at least 3:1 (WCAG 1.4.11 non-text contrast) against every surface a switch sits on.
Functions§
- switch
- A native switch whose on track meets the switch contrast rule in
track. Build every switch here, not withSwitch::new: the theme fixes the off track and knob, but only the switch can set its on colour. - toggle_
row - Places a wrapping label beside a trailing native switch.