1
0
Fork 0

Move the octaves label to filter spread unit

Instead of having this in the parameter's name. Looks better in the GUI.
This commit is contained in:
Robbert van der Helm 2022-11-11 21:52:00 +01:00
parent b2f6175d54
commit a2251509ee

View file

@ -225,7 +225,7 @@ impl DiopserParams {
.with_smoother(SmoothingStyle::Logarithmic(100.0))
.with_value_to_string(formatters::v2s_f32_rounded(2)),
filter_spread_octaves: FloatParam::new(
"Filter Spread Octaves",
"Filter Spread",
0.0,
FloatRange::SymmetricalSkewed {
min: -5.0,
@ -234,6 +234,7 @@ impl DiopserParams {
center: 0.0,
},
)
.with_unit(" octaves")
.with_step_size(0.01)
.with_smoother(SmoothingStyle::Linear(100.0)),
filter_spread_style: EnumParam::new("Filter Spread Style", SpreadStyle::Octaves)