diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-06-27 19:03:00 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-06-27 19:03:00 -0400 |
commit | fe2ddce91420d3649f6abf0ff1905bceef8eac49 (patch) | |
tree | 3aeda69251da8eca2470fc9453a515f307bf8b70 /app/Model/Color.php | |
parent | 7cae104de1cd89141261af718e777f55c571d7bb (diff) |
Add more colors for tasks
Diffstat (limited to 'app/Model/Color.php')
-rw-r--r-- | app/Model/Color.php | 59 |
1 files changed, 50 insertions, 9 deletions
diff --git a/app/Model/Color.php b/app/Model/Color.php index 241a97c7..9a21f691 100644 --- a/app/Model/Color.php +++ b/app/Model/Color.php @@ -52,6 +52,51 @@ class Color extends Base 'background' => 'rgb(238, 238, 238)', 'border' => 'rgb(204, 204, 204)', ), + 'brown' => array( + 'name' => 'Brown', + 'background' => '#d7ccc8', + 'border' => '#4e342e', + ), + 'deep_orange' => array( + 'name' => 'Deep Orange', + 'background' => '#ffab91', + 'border' => '#e64a19', + ), + 'dark_grey' => array( + 'name' => 'Dark Grey', + 'background' => '#cfd8dc', + 'border' => '#455a64', + ), + 'pink' => array( + 'name' => 'Pink', + 'background' => '#f48fb1', + 'border' => '#d81b60', + ), + 'teal' => array( + 'name' => 'Teal', + 'background' => '#80cbc4', + 'border' => '#00695c', + ), + 'cyan' => array( + 'name' => 'Cyan', + 'background' => '#b2ebf2', + 'border' => '#00bcd4', + ), + 'lime' => array( + 'name' => 'Lime', + 'background' => '#e6ee9c', + 'border' => '#afb42b', + ), + 'light_green' => array( + 'name' => 'Light Green', + 'background' => '#dcedc8', + 'border' => '#689f38', + ), + 'amber' => array( + 'name' => 'Amber', + 'background' => '#ffe082', + 'border' => '#ffa000', + ), ); /** @@ -64,15 +109,11 @@ class Color extends Base { $listing = $prepend ? array('' => t('All colors')) : array(); - return $listing + array( - 'yellow' => t('Yellow'), - 'blue' => t('Blue'), - 'green' => t('Green'), - 'purple' => t('Purple'), - 'red' => t('Red'), - 'orange' => t('Orange'), - 'grey' => t('Grey'), - ); + foreach ($this->default_colors as $color_id => $color) { + $listing[$color_id] = t($color['name']); + } + + return $listing; } /** |