diff --git a/pandora_console/images/heartbeat_green_black.gif b/pandora_console/images/heartbeat_green_black.gif new file mode 100644 index 0000000000..b365cade3f Binary files /dev/null and b/pandora_console/images/heartbeat_green_black.gif differ diff --git a/pandora_console/images/heartbeat_red_black.gif b/pandora_console/images/heartbeat_red_black.gif new file mode 100644 index 0000000000..90fed812db Binary files /dev/null and b/pandora_console/images/heartbeat_red_black.gif differ diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index affa4269d4..69759c1f5e 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -3385,11 +3385,22 @@ function agents_get_image_status($status) */ function agents_get_status_animation($up=true) { + global $config; + + // Gif with black background or white background + if ($config['style'] === 'pandora_black') { + $heartbeat_green = 'images/heartbeat_green_black.gif'; + $heartbeat_red = 'images/heartbeat_red_black.gif'; + } else { + $heartbeat_green = 'images/heartbeat_green.gif'; + $heartbeat_red = 'images/heartbeat_red.gif'; + } + switch ($up) { case true: default: return html_print_image( - 'images/heartbeat_green.gif', + $heartbeat_green, true, [ 'width' => '170', @@ -3399,7 +3410,7 @@ function agents_get_status_animation($up=true) case false: return html_print_image( - 'images/heartbeat_red.gif', + $heartbeat_red, true, [ 'width' => '170',