diff options
author | Julius Härtl <jus@bitgrid.net> | 2017-09-02 21:48:14 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2017-09-02 21:48:14 +0200 |
commit | 0a49757535fa09b9ce6a9734ec8bd495a7244482 (patch) | |
tree | b05e5523b837632ac01c8e879cc6070d27ff23ab /apps/theming | |
parent | 27c6dc965774f72688ce32f047da654aee64fed8 (diff) | |
download | nextcloud-server-0a49757535fa09b9ce6a9734ec8bd495a7244482.tar.gz nextcloud-server-0a49757535fa09b9ce6a9734ec8bd495a7244482.zip |
Change invertion threshold to 55%
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming')
-rw-r--r-- | apps/theming/css/theming.scss | 2 | ||||
-rw-r--r-- | apps/theming/lib/Util.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/css/theming.scss b/apps/theming/css/theming.scss index 339bf8a58b9..22e3bdc0d95 100644 --- a/apps/theming/css/theming.scss +++ b/apps/theming/css/theming.scss @@ -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; } diff --git a/apps/theming/lib/Util.php b/apps/theming/lib/Util.php index f0e8fd92ca8..83d8c7aae47 100644 --- a/apps/theming/lib/Util.php +++ b/apps/theming/lib/Util.php @@ -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; |