diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2018-02-16 09:43:05 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2018-02-17 09:24:15 -0600 |
commit | f91f360ae0dcb043845e24cb5fe44933ad327193 (patch) | |
tree | 4a80a8a96df63db1d45ed842bd3bcddc64c55856 | |
parent | fa22689b704ab2dd06c98dcbc1d33b6f4418a4c0 (diff) |
Maybe gauges should only be colored when there is something to report: WARN or CRIT.
-rw-r--r-- | gtk2_ardour/ardour_gauge.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_gauge.cc b/gtk2_ardour/ardour_gauge.cc index f4877c5f7a..e299f06908 100644 --- a/gtk2_ardour/ardour_gauge.cc +++ b/gtk2_ardour/ardour_gauge.cc @@ -103,16 +103,16 @@ ArdourGauge::render (Cairo::RefPtr<Cairo::Context> const& ctx, cairo_rectangle_t switch (indicator ()) { case Level_OK: - cairo_set_source_rgba (cr, 0, .5, 0, 1.0); break; case Level_WARN: cairo_set_source_rgba (cr, .7, .6, 0, 1.0); + cairo_fill (cr); break; case Level_CRIT: cairo_set_source_rgba (cr, .9, 0, 0, 1.0); + cairo_fill (cr); break; } - cairo_fill (cr); int w, h; _layout->get_pixel_size (w, h); |