mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Allow peeking at the next round-robin color to be used
This commit is contained in:
parent
8899ad836e
commit
b9c531cf7f
2 changed files with 6 additions and 2 deletions
|
|
@ -711,7 +711,7 @@ ARDOUR_UI_UTILS::escape_underscores (string const& s)
|
|||
}
|
||||
|
||||
Gdk::Color
|
||||
ARDOUR_UI_UTILS::round_robin_palette_color ()
|
||||
ARDOUR_UI_UTILS::round_robin_palette_color (bool just_peek)
|
||||
{
|
||||
Gdk::Color newcolor;
|
||||
string cp = UIConfiguration::instance ().get_stripable_color_palette ();
|
||||
|
|
@ -719,6 +719,10 @@ ARDOUR_UI_UTILS::round_robin_palette_color ()
|
|||
std::vector<Gdk::Color> c (gc);
|
||||
static std::vector<Gdk::Color>::size_type index = 0;
|
||||
|
||||
if(just_peek) {
|
||||
return c[index];
|
||||
}
|
||||
|
||||
if (index >= c.size ()) {
|
||||
index = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue