Only use CurrentStepLabeled for boolean values
In the default 'smart' generic UI.
This commit is contained in:
parent
57fb259104
commit
deb9b50eab
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue