From 3bb52070ee2396842a583cbca7299b7a79ad1a15 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Sat, 16 Nov 2024 23:30:38 +0100 Subject: [PATCH] remove unneeded HStacks --- src/editor.rs | 256 +++++++++++++++++++------------------------------- 1 file changed, 98 insertions(+), 158 deletions(-) diff --git a/src/editor.rs b/src/editor.rs index e8c8f51..fce1445 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -63,180 +63,136 @@ pub fn create(editor_data: Data, editor_state: Arc) -> Option) -> Optionpan").class("slider-label"); - ParamSlider::new(cx, Data::params, |params| { - ¶ms.taps.panning_amount - }) + Label::new(cx, "note>pan").class("slider-label"); + ParamSlider::new(cx, Data::params, |params| ¶ms.taps.panning_amount) .class("widget"); - }) - .class("row"); }) - .class("column"); + .class("row"); }) .class("param-group"); @@ -272,27 +218,21 @@ pub fn create(editor_data: Data, editor_state: Arc) -> Optioncut").class("slider-label"); - ParamSlider::new(cx, Data::params, |params| { - ¶ms.taps.velocity_to_cutoff_amount - }) - .class("widget"); + Label::new(cx, "vel>cut").class("slider-label"); + ParamSlider::new(cx, Data::params, |params| { + ¶ms.taps.velocity_to_cutoff_amount }) - .class("row"); + .class("widget"); }) - .class("column"); + .class("row"); HStack::new(cx, |cx| { - HStack::new(cx, |cx| { - Label::new(cx, "note>cut").class("slider-label"); - ParamSlider::new(cx, Data::params, |params| { - ¶ms.taps.note_to_cutoff_amount - }) - .class("widget"); + Label::new(cx, "note>cut").class("slider-label"); + ParamSlider::new(cx, Data::params, |params| { + ¶ms.taps.note_to_cutoff_amount }) - .class("row"); + .class("widget"); }) - .class("column"); + .class("row"); }) .class("param-group");