Change invertion threshold to 55%

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2017-09-02 21:48:14 +02:00
parent 27c6dc9657
commit 0a49757535
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
2 changed files with 2 additions and 2 deletions

View File

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

View File

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