Skip to main content

toggle_style

Function toggle_style 

Source
pub fn toggle_style(t: &Theme, status: Status) -> Style
Expand description

The switch’s look: the accent when on, the border grey when off, a dark knob either way.

On is the accent because “on” is one of the two things purple means here (the other is “selected”). Off is not a state colour — off is not an error — so it is the lightest grey in the ramp.