From ba972e3fb2f1ce217fe3ef6b3840aa25d276ee9f Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Tue, 30 Apr 2024 19:16:06 +0200 Subject: [PATCH] toggle meters as well as graph --- src/editor.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/editor.rs b/src/editor.rs index 2042b64..9389080 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -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)); @@ -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 @@ -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)); @@ -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));