Make the default element color for bright theming colors lighter
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
2bdc3b1d27
commit
5bae5bf3eb
2 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ class Util {
|
|||
public function elementColor($color) {
|
||||
$l = $this->calculateLuminance($color);
|
||||
if($l>0.8) {
|
||||
return '#555555';
|
||||
return '#dddddd';
|
||||
}
|
||||
return $color;
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue