Skip to content

Commit

Permalink
toggle meters as well as graph
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed Apr 30, 2024
1 parent af5f063 commit ba972e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,11 @@ fn peak_graph(cx: &mut Context) {
ValueScaling::Decibels,
Orientation::Vertical,
)
.visibility(LambData::show_left)
.background_color(Color::rgb(250, 250, 250))
.color(Color::rgba(0, 0, 255, 255));
})
.visibility(LambData::show_left)
.left(Pixels(4.0))
.width(Pixels(15.0))
.background_color(Color::rgb(203, 203, 203));
Expand All @@ -489,9 +491,11 @@ fn peak_graph(cx: &mut Context) {
ValueScaling::Decibels,
Orientation::Vertical,
)
.visibility(LambData::show_right)
.background_color(Color::rgb(250, 250, 250))
.color(Color::rgba(255, 0, 0, 255));
})
.visibility(LambData::show_right)
.width(Pixels(15.0))
.background_color(Color::rgb(203, 203, 203));
// level
Expand All @@ -502,6 +506,7 @@ fn peak_graph(cx: &mut Context) {
ValueScaling::Decibels,
Orientation::Vertical,
)
.visibility(LambData::show_left)
.width(Pixels(15.0))
.color(Color::rgba(0, 0, 255, 255))
.background_color(Color::rgba(178, 178, 178, 255));
Expand All @@ -512,6 +517,7 @@ fn peak_graph(cx: &mut Context) {
ValueScaling::Decibels,
Orientation::Vertical,
)
.visibility(LambData::show_right)
.width(Pixels(15.0))
.color(Color::rgba(255, 0, 0, 255))
.background_color(Color::rgba(178, 178, 178, 255));
Expand Down

0 comments on commit ba972e3

Please sign in to comment.