From deb9b50eabcf0e7355f096ca59cccf706a1d5822 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Tue, 22 Mar 2022 18:53:56 +0100 Subject: [PATCH] Only use CurrentStepLabeled for boolean values In the default 'smart' generic UI. --- 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 e2b984dc..d1f4ddcd 100644 --- a/nih_plug_vizia/src/widgets/generic_ui.rs +++ b/nih_plug_vizia/src/widgets/generic_ui.rs @@ -50,7 +50,7 @@ impl GenericUi { } } .set_style(match unsafe { param_ptr.step_count() } { - Some(step_count) if step_count <= 3 => ParamSliderStyle::CurrentStepLabeled, + Some(step_count) if step_count <= 2 => ParamSliderStyle::CurrentStepLabeled, Some(step_count) if step_count <= 64 => ParamSliderStyle::CurrentStep, Some(_) => ParamSliderStyle::FromLeft, // This is already the default, but continuous parameters should be drawn from