From 8f02cdc1fa7873c12d6367cac80f332c4c7de93d Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 7 Nov 2022 15:09:03 +0100 Subject: [PATCH] Add an Automation Precision slider to Diopser Using the new label override --- plugins/diopser/src/editor.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/diopser/src/editor.rs b/plugins/diopser/src/editor.rs index ac12f1b1..f8fd5f43 100644 --- a/plugins/diopser/src/editor.rs +++ b/plugins/diopser/src/editor.rs @@ -82,12 +82,8 @@ fn top_bar(cx: &mut Context) { .left(Pixels(7.0)); HStack::new(cx, |cx| { - // TODO: Placeholders, replace with the actual elements - Element::new(cx) - .width(Pixels(210.0)) - .height(Pixels(30.0)) - .border_color(Color::rgb(0x0a, 0x0a, 0x0a)) - .border_width(Pixels(1.0)); + ParamSlider::new(cx, Data::params, |params| ¶ms.automation_precision) + .with_label("Automation Precision"); SafeModeButton::new(cx, Data::safe_mode, "Safe mode").left(Pixels(10.0));