13
0

(backport?) when ArdourButton has a LED indicator, don't change font color

This commit is contained in:
Ben Loftis 2024-05-23 12:03:06 -05:00
parent 09542f4d25
commit 7e14e6c3d5

View File

@ -289,7 +289,8 @@ ArdourButton::render (Cairo::RefPtr<Cairo::Context> const& ctx, cairo_rectangle_
}
if ( active_state() == Gtkmm2ext::ExplicitActive ) {
text_color = text_active_color;
bool led = (_elements & Indicator)==Indicator;
text_color = led ? text_inactive_color : text_active_color;
led_color = led_active_color;
} else {
text_color = text_inactive_color;