Skip to content

Commit

Permalink
WIP: Update Spectral Compressor for vizia changes
Browse files Browse the repository at this point in the history
The scaling is a bit odd now, there's a rounding error with user
scaling, and the 'Show analyzer' button does not yet work
  • Loading branch information
robbert-vdh committed Dec 30, 2023
1 parent 99d853c commit 51d7ade
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions plugins/spectral_compressor/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,13 @@ fn main_column(cx: &mut Context) {
.top(Stretch(1.0))
.bottom(Pixels(4.0))
.left(Pixels(2.0));
});
})
.size(Auto);
})
.height(Pixels(30.0))
.right(Pixels(17.0))
.bottom(Pixels(-5.0))
// Somehow this overrides the 'row-between' value now
.bottom(Pixels(8.0))
.left(Pixels(10.0))
.top(Pixels(10.0))
// This contains the editor mode buttom all the way on the left, and the plugin's name all the way on the right
Expand All @@ -163,16 +165,14 @@ fn main_column(cx: &mut Context) {
use this in a project, make sure to bounce things to audio just in case \
they'll sound different later.",
)
.text_wrap(true)
.font_size(11.0)
.left(Pixels(15.0))
.right(Pixels(8.0))
// The column isn't tall enough without this, for some reason
.bottom(Pixels(20.0))
.width(Stretch(1.0));
});
})
.height(Auto)
.width(Stretch(1.0));
.size(Auto);

HStack::new(cx, |cx| {
make_column(cx, "Upwards", |cx| {
Expand Down Expand Up @@ -214,11 +214,10 @@ fn main_column(cx: &mut Context) {
});
});
})
.height(Auto)
.width(Stretch(1.0));
.size(Auto);
})
.width(Pixels(COLLAPSED_GUI_WIDTH as f32))
.row_between(Pixels(15.0))
.row_between(Pixels(10.0))
.child_left(Stretch(1.0))
.child_right(Stretch(1.0));
}
Expand Down

0 comments on commit 51d7ade

Please sign in to comment.