pub fn set_stroke(app: &AppHandle, on: bool)
Says a stroke (a brush, a drag on the canvas) starts or ends: the palettes fade meanwhile when the palettes.fade_on_stroke setting is on.
palettes.fade_on_stroke