summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_button.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-03-17 02:08:41 +0100
committerRobin Gareus <robin@gareus.org>2015-03-17 02:08:41 +0100
commit6aa6c2d552477741a85f1a8deea9babbd6c123a4 (patch)
treee9d803dd17b7aed70cf0cbeb971cab07102c56ed /gtk2_ardour/ardour_button.cc
parentbf43019eedfb0429275ec99c7b74e41bcad744f2 (diff)
AButton: decouple indicator color and active state.
If a custom LED color is used, the LED does not reflect the ExplicitActive state. Hence the Body Element (if visible) should be used just like for buttons without LED indicator.
Diffstat (limited to 'gtk2_ardour/ardour_button.cc')
-rw-r--r--gtk2_ardour/ardour_button.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_button.cc b/gtk2_ardour/ardour_button.cc
index a0f9a4a389..921828c5bb 100644
--- a/gtk2_ardour/ardour_button.cc
+++ b/gtk2_ardour/ardour_button.cc
@@ -272,7 +272,7 @@ ArdourButton::render (cairo_t* cr, cairo_rectangle_t *)
//show the "convex" or "concave" gradient
if (!_flat_buttons) {
- if ( active_state() == Gtkmm2ext::ExplicitActive && !((_elements & Indicator)==Indicator) ) {
+ if ( active_state() == Gtkmm2ext::ExplicitActive && ( !((_elements & Indicator)==Indicator) || use_custom_led_color) ) {
//concave
cairo_set_source (cr, concave_pattern);
Gtkmm2ext::rounded_rectangle (cr, 1, 1, get_width() - 2, get_height() - 2, _corner_radius);