Skip to content

Commit

Permalink
Merge pull request #51 from cybercog/add-colors-from-shields-io
Browse files Browse the repository at this point in the history
[2.x] Add colors from shields.io
  • Loading branch information
JellyBellyDev authored Jul 29, 2020
2 parents 92fd508 + 0c5e6c5 commit 895eb98
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
* configure and run php-cs-fixer with new code style roles
* add setting custom badge style from query string
* add psalm
* added all the colors from the shields.io site

### Changed
* upgrade docker-compose for dev environment with php7.4
Expand Down
24 changes: 15 additions & 9 deletions src/Badge.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,21 @@ class Badge
public const DEFAULT_FORMAT = 'svg';

private static array $colorScheme = [
'brightgreen' => '44cc11',
'green' => '97CA00',
'yellow' => 'dfb317',
'yellowgreen' => 'a4a61d',
'orange' => 'fe7d37',
'red' => 'e05d44',
'blue' => '007ec6',
'grey' => '555555',
'lightgray' => '9f9f9f',
'brightgreen' => '44cc11',
'green' => '97ca00',
'yellowgreen' => 'a4a61d',
'yellow' => 'dfb317',
'orange' => 'fe7d37',
'red' => 'e05d44',
'blue' => '007ec6',
'lightgray' => '9f9f9f',
'grey' => '555555',
'blueviolet' => '8a2be2',
'success' => '97ca00',
'important' => 'fe7d37',
'critical' => 'e05d44',
'informational' => '007ec6',
'inactive' => '9f9f9f',
];

private string $subject;
Expand Down

0 comments on commit 895eb98

Please sign in to comment.