pub fn toggle<'a, Message: 'a>(
is_on: bool,
scale: FontScale,
) -> Toggler<'a, Message>Expand description
An on/off switch — what every boolean setting is, rather than a checkbox.
A checkbox reads as “include this in something”, which is right for
picking rows and wrong for a setting that is simply on or off. The
caller attaches on_toggle; a switch without one is drawn disabled,
which is how iced says “you cannot change this here”.