mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Remove redundant logic for calculating button rg color
This commit is contained in:
parent
43b48467f8
commit
b397d48a56
1 changed files with 6 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue