mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
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.
This commit is contained in:
parent
bf43019eed
commit
6aa6c2d552
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue