Remove redundant logic for calculating button rg color

This commit is contained in:
Ben Loftis 2025-01-10 14:38:40 -06:00 committed by Robin Gareus
parent 43b48467f8
commit b397d48a56
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -849,8 +849,12 @@ ArdourButton::set_colors ()
}
}
text_active_color = Gtkmm2ext::contrasting_text_color (fill_active_color);
text_inactive_color = UIConfigurationBase::instance().color ("gtk_foreground");
{
/* set contransting text color, but retain _fixed_colors_set */
PBD::Unwinder<int> uw (_fixed_colors_set, _fixed_colors_set);
set_active_color (fill_active_color);
set_inactive_color (fill_inactive_color);
}
led_active_color = UIConfigurationBase::instance().color (string_compose ("%1: led active", name), &failed);
if (failed) {