From 0a49757535fa09b9ce6a9734ec8bd495a7244482 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Sat, 2 Sep 2017 21:48:14 +0200 Subject: Change invertion threshold to 55% MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/theming/css/theming.scss | 2 +- 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; -- cgit v1.2.3