From 9ac7ddb31d3d4633716a9ec1a99d21ca27878744 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 7 Dec 2014 13:55:40 -0500 Subject: 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 --- gtk2_ardour/ardour_button.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/ardour_button.cc') 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)); -- cgit v1.2.3