From bfe8d58d81f272397f5e0c9b124bf2a0b6f84cb9 Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Fri, 21 Apr 2023 13:24:14 +0200 Subject: [PATCH] Change background color of progress bar with skin pandora_dark is active --- pandora_console/include/graphs/functions_gd.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/graphs/functions_gd.php b/pandora_console/include/graphs/functions_gd.php index cb2a6735e2..26a346f461 100755 --- a/pandora_console/include/graphs/functions_gd.php +++ b/pandora_console/include/graphs/functions_gd.php @@ -344,7 +344,11 @@ function drawRating($rating, $width, $height, $font, $out_of_lim_str, $mode, $fo $image = imagecreate($width, $height); // colors - $back = imagecolorallocate($image, 241, 241, 241); + if ($config['style'] === 'pandora_black') { + $back = imagecolorallocate($image, 34, 34, 34); + } else { + $back = imagecolorallocate($image, 241, 241, 241); + } $bordercolor = imagecolorallocate($image, 241, 241, 241); $text = imagecolorallocate($image, 74, 74, 74);