Merge pull request #23307 from daraelmin/daraelmin-v17-fix-darkmode-badge

Fix v17 White bg-color for chart and badge in darkmode
This commit is contained in:
Laurent Destailleur 2022-12-22 13:50:04 +01:00 committed by GitHub
commit 9c97000f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1211,7 +1211,7 @@ class DolGraph
$tmp = str_replace('#', '', $this->datacolor[$i]);
if (strpos($tmp, '-') !== false) {
$foundnegativecolor++;
$color = '#FFFFFF'; // If $val is '-123'
$color = 'rgba(0,0,0,.0)'; // If $val is '-123'
} else {
$color = "#" . $tmp; // If $val is '123' or '#123'
}

View File

@ -246,7 +246,7 @@ function _createStatusBadgeCss($statusName, $statusVarNamePrefix = '', $commentL
if (in_array((string) $statusName, $TBadgeBorderOnly)) {
$thisBadgeTextColor = '#212529';
$thisBadgeBackgroundColor = "#fff";
$thisBadgeBackgroundColor = "";
}
if (in_array((string) $statusName, array('0', '5', '9'))) {