Merge pull request #6344 from nextcloud/theming-invert-threshold
Theming change invertion threshold to 55%
This commit is contained in:
commit
0f71e3fba2
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue