Skip to main content

SWITCH_SLIDE_MS

Constant SWITCH_SLIDE_MS 

Source
pub const SWITCH_SLIDE_MS: u64 = 140;
Expand description

Fallback duration of the thumb slide when the switch flips, used when the track carries no transition: bg ... TransitionSpecs (see [slide_tween_params]). 140 ms sits between Slint’s 75 ms handle tween and the 200 ms Qt QML Switch default - long enough to read as motion, short enough to feel instant.