1
0
Fork 0

Only use CurrentStepLabeled for boolean values

In the default 'smart' generic UI.
This commit is contained in:
Robbert van der Helm 2022-03-22 18:53:56 +01:00
parent 57fb259104
commit deb9b50eab

View file

@ -50,7 +50,7 @@ impl GenericUi {
} }
} }
.set_style(match unsafe { param_ptr.step_count() } { .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(step_count) if step_count <= 64 => ParamSliderStyle::CurrentStep,
Some(_) => ParamSliderStyle::FromLeft, Some(_) => ParamSliderStyle::FromLeft,
// This is already the default, but continuous parameters should be drawn from // This is already the default, but continuous parameters should be drawn from