10.2.dev5 correction d'une régression

This commit is contained in:
Fred Tempez 2020-05-26 00:03:34 +02:00
parent f92cad8f71
commit 43b7864b70
1 changed files with 1 additions and 1 deletions

View File

@ -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"
];
}