make inactive group tab color be themeable and update it dynamically
[ardour.git] / gtk2_ardour / editor_group_tabs.cc
index fb7081df2ca265894033aa62b04810c6d9e8f832..af5e63bd55a5700348ac7a39ab9450ef6fcbf1bd 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "canvas/utils.h"
 
+#include "ardour_ui.h"
 #include "editor.h"
 #include "editor_group_tabs.h"
 #include "editor_route_groups.h"
@@ -94,9 +95,7 @@ EditorGroupTabs::draw_tab (cairo_t* cr, Tab const & tab) const
        if (tab.group && tab.group->is_active()) {
                ArdourCanvas::color_to_rgba (tab.color, r, g, b, a);
        } else {
-               r = 0.0;
-               g = 0.0;
-               b = 0.0;
+               ArdourCanvas::color_to_rgba (ARDOUR_UI::config()->get_canvasvar_InactiveGroupTab(), r, g, b, a);
        }
 
        a = 1.0;