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
@ -2247,6 +2247,22 @@ RouteUI::route_color () const
|
|||||||
return c;
|
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
|
void
|
||||||
RouteUI::set_showing_sends_to (boost::shared_ptr<Route> send_to)
|
RouteUI::set_showing_sends_to (boost::shared_ptr<Route> send_to)
|
||||||
{
|
{
|
||||||
@ -2744,6 +2760,8 @@ RouteUI::rename_current_playlist ()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
RouteUI::set_bg_color_from_route (Gtk::Widget& w, bool yn)
|
RouteUI::set_bg_color_from_route (Gtk::Widget& w, bool yn)
|
||||||
{
|
{
|
||||||
|
@ -119,6 +119,7 @@ public:
|
|||||||
boost::shared_ptr<ARDOUR::MidiTrack> midi_track () const;
|
boost::shared_ptr<ARDOUR::MidiTrack> midi_track () const;
|
||||||
|
|
||||||
Gdk::Color route_color () const;
|
Gdk::Color route_color () const;
|
||||||
|
Gdk::Color route_color_tint () const;
|
||||||
|
|
||||||
// protected: XXX sigh this should be here
|
// protected: XXX sigh this should be here
|
||||||
// callbacks used by dervice classes via &RouteUI::*
|
// callbacks used by dervice classes via &RouteUI::*
|
||||||
|
Loading…
Reference in New Issue
Block a user