aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-09-03 14:01:05 +0200
committerGitHub <noreply@github.com>2017-09-03 14:01:05 +0200
commit0f71e3fba2fff6c946f844ba421a729720775367 (patch)
treeb7fe4b91b059ae0f1fd808ad8f72608c6f214fa7
parentfd075240a4ba307e11ba577890d536d758e10789 (diff)
parent0a49757535fa09b9ce6a9734ec8bd495a7244482 (diff)
downloadnextcloud-server-0f71e3fba2fff6c946f844ba421a729720775367.tar.gz
nextcloud-server-0f71e3fba2fff6c946f844ba421a729720775367.zip
Merge pull request #6344 from nextcloud/theming-invert-threshold
Theming change invertion threshold to 55%
-rw-r--r--apps/theming/css/theming.scss2
-rw-r--r--apps/theming/lib/Util.php2
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;