1
0
Fork 0

Hide Diopser's very important parameter

This commit is contained in:
Robbert van der Helm 2022-03-23 13:17:47 +01:00
parent 144e30239e
commit 0655ce35d8
2 changed files with 7 additions and 4 deletions

View file

@ -36,7 +36,7 @@ impl Model for Data {}
// Makes sense to also define this here, makes it a bit easier to keep track of // Makes sense to also define this here, makes it a bit easier to keep track of
pub(crate) fn default_state() -> Arc<ViziaState> { pub(crate) fn default_state() -> Arc<ViziaState> {
ViziaState::from_size(380, 305) ViziaState::from_size(380, 270)
} }
pub(crate) fn create( pub(crate) fn create(
@ -62,6 +62,7 @@ pub(crate) fn create(
// See the Crisp generic UI for an example using a ScrollView // See the Crisp generic UI for an example using a ScrollView
GenericUi::new(cx, Data::params) GenericUi::new(cx, Data::params)
.width(Percentage(100.0)) .width(Percentage(100.0))
.height(Auto)
.child_top(Pixels(5.0)); .child_top(Pixels(5.0));
}) })
.width(Percentage(100.0)) .width(Percentage(100.0))

View file

@ -203,9 +203,11 @@ impl DiopserParams {
should_update_filters.store(true, Ordering::Release) should_update_filters.store(true, Ordering::Release)
})), })),
very_important: BoolParam::new("Don't touch this", true).with_value_to_string( very_important: BoolParam::new("Don't touch this", true)
Arc::new(|value| String::from(if value { "please don't" } else { "stop it" })), .with_value_to_string(Arc::new(|value| {
), String::from(if value { "please don't" } else { "stop it" })
}))
.hide_in_generic_ui(),
automation_precision: FloatParam::new( automation_precision: FloatParam::new(
"Automation precision", "Automation precision",