mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
add 2nd method to RouteUI to get a (possible) variant of the route color for "tinting"
Currently returns the same value as ::route_color()
This commit is contained in:
parent
aee41bfba6
commit
bfa40895b3
2 changed files with 19 additions and 0 deletions
|
|
@ -2247,6 +2247,22 @@ RouteUI::route_color () const
|
|||
return c;
|
||||
}
|
||||
|
||||
Gdk::Color
|
||||
RouteUI::route_color_tint () const
|
||||
{
|
||||
return route_color ();
|
||||
#if 0
|
||||
Gdk::Color lighter_bg;
|
||||
|
||||
HSV l (gdk_color_to_rgba (route_color()));
|
||||
l.h += std::min (l.h + 0.08, 1.0);
|
||||
l.s = 0.15;
|
||||
l.v -= std::max (0.0, 0.05);
|
||||
set_color_from_rgba (lighter_bg, l.color ());
|
||||
return lighter_bg;
|
||||
endif
|
||||
}
|
||||
|
||||
void
|
||||
RouteUI::set_showing_sends_to (boost::shared_ptr<Route> send_to)
|
||||
{
|
||||
|
|
@ -2744,6 +2760,8 @@ RouteUI::rename_current_playlist ()
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void
|
||||
RouteUI::set_bg_color_from_route (Gtk::Widget& w, bool yn)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue