From 70f50018ad8f5942da96309c809a5c5c46361521 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Fri, 22 Jul 2022 15:43:55 +0200 Subject: [PATCH] Use regular slides for >3 step parameters --- nih_plug_vizia/src/widgets/generic_ui.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nih_plug_vizia/src/widgets/generic_ui.rs b/nih_plug_vizia/src/widgets/generic_ui.rs index 191537da..48da2257 100644 --- a/nih_plug_vizia/src/widgets/generic_ui.rs +++ b/nih_plug_vizia/src/widgets/generic_ui.rs @@ -52,7 +52,7 @@ impl GenericUi { Some(step_count) if step_count <= 1 => { ParamSliderStyle::CurrentStepLabeled { even: true } } - Some(step_count) if step_count <= 64 => { + Some(step_count) if step_count <= 2 => { ParamSliderStyle::CurrentStep { even: true } } Some(_) => ParamSliderStyle::FromLeft,