Change invertion threshold to 55%
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
27c6dc9657
commit
0a49757535
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue