diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-08-29 17:46:54 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-08-30 11:37:05 +0300 |
commit | 5bae5bf3ebd6001a8ddbf988714e6bf90d48d692 (patch) | |
tree | 699fceb5f974ad82771022e5c86012f68503dc13 | |
parent | 2bdc3b1d27d69390d21959e166816e5732f0551b (diff) |
Make the default element color for bright theming colors lighter
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | apps/theming/lib/Util.php | 2 | ||||
-rw-r--r-- | apps/theming/tests/UtilTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/lib/Util.php b/apps/theming/lib/Util.php index b72cc5b8996..b17382334d0 100644 --- a/apps/theming/lib/Util.php +++ b/apps/theming/lib/Util.php @@ -79,7 +79,7 @@ class Util { public function elementColor($color) { $l = $this->calculateLuminance($color); if($l>0.8) { - return '#555555'; + return '#dddddd'; } return $color; } diff --git a/apps/theming/tests/UtilTest.php b/apps/theming/tests/UtilTest.php index 247bcbae0b2..61d1dc48301 100644 --- a/apps/theming/tests/UtilTest.php +++ b/apps/theming/tests/UtilTest.php @@ -105,7 +105,7 @@ class UtilTest extends TestCase { public function testElementColorOnBrightBackground() { $elementColor = $this->util->elementColor('#ffffff'); - $this->assertEquals('#555555', $elementColor); + $this->assertEquals('#dddddd', $elementColor); } public function testGenerateRadioButtonWhite() { |