#include "ardour/route_group.h"
-#include "canvas/utils.h"
+#include "canvas/colors.h"
+#include "ardour_ui.h"
#include "editor.h"
#include "editor_group_tabs.h"
#include "editor_route_groups.h"
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()->color ("inactive group tab"), r, g, b, a);
}
a = 1.0;
cairo_text_extents_t ext;
cairo_text_extents (cr, tab.group->name().c_str(), &ext);
- ArdourCanvas::Color c = contrasting_text_color (ArdourCanvas::rgba_to_color (r, g, b, a));
+ ArdourCanvas::Color c = ArdourCanvas::contrasting_text_color (ArdourCanvas::rgba_to_color (r, g, b, a));
ArdourCanvas::color_to_rgba (c, r, g, b, a);
cairo_set_source_rgb (cr, r, g, b);
}
}
-PBD::PropertyList
-EditorGroupTabs::default_properties () const
-{
- PBD::PropertyList plist;
-
- plist.add (Properties::active, true);
- plist.add (Properties::mute, true);
- plist.add (Properties::solo, true);
- plist.add (Properties::recenable, true);
-
- return plist;
-}
-
RouteList
EditorGroupTabs::selected_routes () const
{