Merge pull request #6344 from nextcloud/theming-invert-threshold

Theming change invertion threshold to 55%
This commit is contained in:
Morris Jobke 2017-09-03 14:01:05 +02:00 committed by GitHub
commit 0f71e3fba2
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
} }
/* invert header icons on bright background */ /* invert header icons on bright background */
@if (lightness($color-primary) > 50) { @if (lightness($color-primary) > 55) {
.searchbox input[type="search"] { .searchbox input[type="search"] {
background: transparent url('../../../core/img/actions/search.svg') no-repeat 6px center; background: transparent url('../../../core/img/actions/search.svg') no-repeat 6px center;
} }

View File

@ -62,7 +62,7 @@ class Util {
*/ */
public function invertTextColor($color) { public function invertTextColor($color) {
$l = $this->calculateLuminance($color); $l = $this->calculateLuminance($color);
if($l>0.5) { if($l>0.55) {
return true; return true;
} else { } else {
return false; return false;