Skip to content

Commit

Permalink
Make the default element color for bright theming colors lighter
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Aug 30, 2018
1 parent 2bdc3b1 commit 5bae5bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/theming/lib/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function invertTextColor($color) {
public function elementColor($color) {
$l = $this->calculateLuminance($color);
if($l>0.8) {
return '#555555';
return '#dddddd';
}
return $color;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/theming/tests/UtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function testElementColorDefault() {

public function testElementColorOnBrightBackground() {
$elementColor = $this->util->elementColor('#ffffff');
$this->assertEquals('#555555', $elementColor);
$this->assertEquals('#dddddd', $elementColor);
}

public function testGenerateRadioButtonWhite() {
Expand Down

0 comments on commit 5bae5bf

Please sign in to comment.