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:
commit
9c97000f81
@ -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'
|
||||
}
|
||||
|
||||
@ -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'))) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user