From 43b7864b70210deff111d2a1709ca2b02b929309 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 26 May 2020 00:03:34 +0200 Subject: [PATCH] =?UTF-8?q?10.2.dev5=20correction=20d'une=20r=C3=A9gressio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/helper.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/class/helper.class.php b/core/class/helper.class.php index 06d7f531..f2c16d9e 100755 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -184,7 +184,7 @@ class helper { 'normal' => 'rgba(' . $rgba[0] . ',' . $rgba[1] . ',' . $rgba[2] . ',' . $rgba[3] . ')', 'darken' => 'rgba(' . max(0, $rgba[0] - 15) . ',' . max(0, $rgba[1] - 15) . ',' . max(0, $rgba[2] - 15) . ',' . $rgba[3] . ')', 'veryDarken' => 'rgba(' . max(0, $rgba[0] - 20) . ',' . max(0, $rgba[1] - 20) . ',' . max(0, $rgba[2] - 20) . ',' . $rgba[3] . ')', - 'text' => self::relativeLuminanceW3C($rgba) > .22 ? "inherit" : "white" + 'text' => self::relativeLuminanceW3C($rgba) > .22 ? "#222" : "#DDD" ]; }