Make the default element color for bright theming colors lighter

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/10924/head
Julius Härtl 8 years ago
parent 2bdc3b1d27
commit 5bae5bf3eb
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
  1. 2
      apps/theming/lib/Util.php
  2. 2
      apps/theming/tests/UtilTest.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;
}

@ -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…
Cancel
Save