From d01e506ac00348b5f12f8d54311a9d7f5d138795 Mon Sep 17 00:00:00 2001 From: antonkomarev Date: Wed, 29 Jul 2020 00:30:07 +0300 Subject: [PATCH 1/3] Add missing colors from shields.io --- src/Badge.php | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/Badge.php b/src/Badge.php index bb3c4ae..6d18e55 100644 --- a/src/Badge.php +++ b/src/Badge.php @@ -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; From c4dfded249dd604e1b63f96658cad56363e33cf4 Mon Sep 17 00:00:00 2001 From: antonkomarev Date: Wed, 29 Jul 2020 00:36:29 +0300 Subject: [PATCH 2/3] Make all colors lowercase --- src/Badge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Badge.php b/src/Badge.php index 6d18e55..07524c7 100644 --- a/src/Badge.php +++ b/src/Badge.php @@ -9,7 +9,7 @@ class Badge private static array $colorScheme = [ 'brightgreen' => '44cc11', - 'green' => '97CA00', + 'green' => '97ca00', 'yellowgreen' => 'a4a61d', 'yellow' => 'dfb317', 'orange' => 'fe7d37', @@ -18,7 +18,7 @@ class Badge 'lightgray' => '9f9f9f', 'grey' => '555555', 'blueviolet' => '8a2be2', - 'success' => '97CA00', + 'success' => '97ca00', 'important' => 'fe7d37', 'critical' => 'e05d44', 'informational' => '007ec6', From 0c5e6c50e496966e6298a8275a6bc192cd64676c Mon Sep 17 00:00:00 2001 From: antonkomarev Date: Wed, 29 Jul 2020 12:42:48 +0300 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c0121de..24415ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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