diff options
Diffstat (limited to 'lib/RHRD/utils.pm')
-rwxr-xr-x | lib/RHRD/utils.pm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/RHRD/utils.pm b/lib/RHRD/utils.pm index d06e1ce..bcdac56 100755 --- a/lib/RHRD/utils.pm +++ b/lib/RHRD/utils.pm @@ -72,7 +72,7 @@ use constant { CMDLINE_DOW_HINT => "must be one of MO, TU, WE, TH, FR, SA, SU", # this is a subset of the colors from: stackoverflow.com/questions/2328339 - POOL_COLORS => ["FFFF00", "1CE6FF", "FF34FF", "FF4A46", "008941", "006FA6", "A30059", + POOL_COLORS => ["FFFFFF", "FFFF00", "1CE6FF", "FF34FF", "FF4A46", "008941", "006FA6", "FFDBE5", "7A4900", "0000A6", "63FFAC", "B79762", "004D43", "8FB0FF", "5A0007", "809693", "FEFFE6", "4FC601", "3B5DFF", "4A3B53", "FF2F80", "61615A", "BA0900", "6B7900", "00C2A0", "FFAA92", "FF90C9", "B903AA", @@ -81,7 +81,7 @@ use constant { "00489C", "6F0062", "0CBD66", "EEC3FF", "B77B68", "7A87A1", "788D66", "885578", "FAD09F", "FF8A9A", "D157A0", "BEC459", "0086ED", "886F4C", "549E79", "FFF69F", "72418F", "BC23FF", "99ADC0", "3A2465", "922329", - "5B4534", "FDE8DC", "404E55", "0089A3", "CB7E98", "A4E804", "324E72", + "5B4534", "404E55", "0089A3", "CB7E98", "A4E804", "324E72", "A30059", "B4A8BD", "452C2C", "636375", "A3C8C9", "9B9700", "D0AC94", "FF6832", "575329", "00FECF", "B05B6F", "8CD0FF", "1E6E00", "66E1D3", "CFCDAC", "A77500", "6367A9", "A05837", "772600", "D790FF", "5B4E51", "8ADBB4", @@ -89,6 +89,14 @@ use constant { "DA007C", "FF1A59"] }; +sub get_musicpool_color +{ + my ($num) = @_; + + $num = 0 if($num < 0 || $num > $#{+POOL_COLORS}); + return POOL_COLORS->[$num]; +} + sub dropbox_param_type_ok { my ($type) = @_; |