From 7e14e6c3d52cfee6f69b75a35833ccf8d4469687 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Thu, 23 May 2024 12:03:06 -0500 Subject: [PATCH] (backport?) when ArdourButton has a LED indicator, don't change font color --- libs/widgets/ardour_button.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/widgets/ardour_button.cc b/libs/widgets/ardour_button.cc index 2447362410..3d527ebdf9 100644 --- a/libs/widgets/ardour_button.cc +++ b/libs/widgets/ardour_button.cc @@ -289,7 +289,8 @@ ArdourButton::render (Cairo::RefPtr 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;