pub type OnSlide = Rc<dyn Fn(f32, bool, &mut Window, &mut App)>;
What a slider calls: the new value and whether the drag ended (to commit one undo step).
pub struct OnSlide { /* private fields */ }