Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed Apr 15, 2024
1 parent a2947de commit 680d3a7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ impl Model for LambData {}
pub(crate) fn default_state() -> Arc<ViziaState> {
// width , height
// ViziaState::new(|| (((16.0 / 9.0) * 720.0) as u32, 720))
ViziaState::new(|| (1280 as u32, 960))
// ViziaState::new(|| (1280, 960))
ViziaState::new(|| (1200, 900))
}

pub(crate) fn create(
Expand Down Expand Up @@ -191,9 +192,9 @@ pub(crate) fn create(
.height(Auto)
.width(Percentage(100.0));

peak_graph(cx);
// meters
VStack::new(cx, |cx| {
peak_graph(cx);
// Label::new(cx, "input level").class("fader-label");
// PeakMeter::new(
// cx,
Expand Down Expand Up @@ -444,7 +445,8 @@ fn peak_graph(cx: &mut Context) {
;
})
.top(Pixels(13.0))
.height(Pixels(280.0))
// .height(Pixels(280.0))
.height(Pixels(200.0))
.width(Percentage(100.0))
.col_between(Pixels(8.))
.border_color(Color::rgb(80, 80, 80))
Expand Down

0 comments on commit 680d3a7

Please sign in to comment.