Skip to main content

tri_state

Function tri_state 

Source
pub fn tri_state<'a, Message: Clone + 'a>(
    value: Option<bool>,
    on_select: impl Fn(Option<bool>) -> Message,
) -> Element<'a, Message>
Expand description

A three-way “unset / true / false” selector, for the settings that have a real difference between “don’t care” and “explicitly false” — a window -rule matcher of floating = false selects tiled windows, which a plain checkbox can’t express separately from not matching on it at all.