Heartbeat gifs with black background - #4194
This commit is contained in:
parent
b6d551d583
commit
0cccafc7be
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue