Make the default element color for bright theming colors lighter

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-08-29 16:46:54 +02:00
parent 2bdc3b1d27
commit 5bae5bf3eb
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ class Util {
public function elementColor($color) {
$l = $this->calculateLuminance($color);
if($l>0.8) {
return '#555555';
return '#dddddd';
}
return $color;
}

View file

@ -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() {