summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_button.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-12-07 13:55:40 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-12-07 13:55:40 -0500
commit9ac7ddb31d3d4633716a9ec1a99d21ca27878744 (patch)
tree772ee6f0492398532bb8fe0b23e8f3e142f1c533 /gtk2_ardour/ardour_button.cc
parentb37be190f322cb27e28c3819a9c5e37b55a6fea3 (diff)
remove all explicit button text colors; use contrasting_text_color() instead.
Also, use a slightly off-white rather than pure white, which should really be configurable
Diffstat (limited to 'gtk2_ardour/ardour_button.cc')
-rw-r--r--gtk2_ardour/ardour_button.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_button.cc b/gtk2_ardour/ardour_button.cc
index ddd8b9ca3e..f4dbc830f6 100644
--- a/gtk2_ardour/ardour_button.cc
+++ b/gtk2_ardour/ardour_button.cc
@@ -666,8 +666,8 @@ ArdourButton::set_colors ()
fill_active_color = ARDOUR_UI::config()->color (string_compose ("%1: fill active", name));
fill_inactive_color = ARDOUR_UI::config()->color (string_compose ("%1: fill", name));
- text_active_color = ARDOUR_UI::config()->color (string_compose ("%1: text active", name));
- text_inactive_color = ARDOUR_UI::config()->color (string_compose ("%1: text", name));
+ text_active_color = ArdourCanvas::contrasting_text_color (fill_active_color);
+ text_inactive_color = ArdourCanvas::contrasting_text_color (fill_inactive_color);
led_active_color = ARDOUR_UI::config()->color (string_compose ("%1: led active", name));
led_inactive_color = ARDOUR_UI::config()->color (string_compose ("%1: led", name));