1
0
Fork 0

Add an Automation Precision slider to Diopser

Using the new label override
This commit is contained in:
Robbert van der Helm 2022-11-07 15:09:03 +01:00
parent bf0f4d56fe
commit 8f02cdc1fa

View file

@ -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| &params.automation_precision)
.with_label("Automation Precision");
SafeModeButton::new(cx, Data::safe_mode, "Safe mode").left(Pixels(10.0));