move color utility functions from ARDOUR_UI_UTILS to Gtkmm2ext namespace (GUI)

This commit is contained in:
Paul Davis 2022-08-10 21:11:52 -06:00
parent a2e4897a49
commit 9ea1e5bdee
23 changed files with 62 additions and 118 deletions

View file

@ -59,6 +59,7 @@
#include "ardour/solo_mute_release.h"
#include "ardour/template_utils.h"
#include "gtkmm2ext/colors.h"
#include "gtkmm2ext/gtk_ui.h"
#include "gtkmm2ext/doi.h"
#include "gtkmm2ext/gtk_ui.h"
@ -88,7 +89,6 @@
#include "save_template_dialog.h"
#include "timers.h"
#include "ui_config.h"
#include "utils.h"
#include "pbd/i18n.h"
@ -2239,9 +2239,9 @@ RouteUI::route_color () const
string p;
if (g && g->is_color()) {
set_color_from_rgba (c, GroupTabs::group_color (g));
Gtkmm2ext::set_color_from_rgba (c, GroupTabs::group_color (g));
} else {
set_color_from_rgba (c, _route->presentation_info().color());
Gtkmm2ext::set_color_from_rgba (c, _route->presentation_info().color());
}
return c;