From 5eaa4a10bb42a364a1624dbfaf08db741f59d75a Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 22 Mar 2023 11:13:56 +0100 Subject: [PATCH] fixed styles --- .../godmode/agentes/modificar_agente.php | 2 - pandora_console/include/functions_ui.php | 30 +++++++++++++-- .../include/styles/pandora_black.css | 3 +- .../operation/visual_console/view.php | 38 +++++++++---------- 4 files changed, 48 insertions(+), 25 deletions(-) diff --git a/pandora_console/godmode/agentes/modificar_agente.php b/pandora_console/godmode/agentes/modificar_agente.php index 343c89e50e..27f81b1f43 100644 --- a/pandora_console/godmode/agentes/modificar_agente.php +++ b/pandora_console/godmode/agentes/modificar_agente.php @@ -866,7 +866,6 @@ if ($agents !== false) { // Operating System icon column. $osIconColumn = html_print_div( [ - 'class' => 'main_menu_icon invert_filter', 'content' => ui_print_os_icon($agent['id_os'], false, true), ], true @@ -885,7 +884,6 @@ if ($agents !== false) { // Group icon and name column. $agentGroupIconColumn = html_print_div( [ - 'class' => 'main_menu_icon invert_filter', 'content' => ui_print_group_icon($agent['id_grupo'], true), ], true diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index c25af60513..8eebebe339 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -959,15 +959,39 @@ function ui_print_type_agent_icon( if ((int) $id_os === SATELLITE_OS_ID) { // Satellite. $options['title'] = __('Satellite'); - $output = html_print_image('images/satellite@os.svg', true, ['class' => 'main_menu_icon invert_filter'], false, false, false, true); + $output = html_print_image( + 'images/satellite@os.svg', + true, + ['class' => 'main_menu_icon invert_filter'], + false, + false, + false, + true + ); } else if ($remote_contact === $contact && $remote === 0 && empty($version) === true) { // Network. $options['title'] = __('Network'); - $output = html_print_image('images/network-server@os.svg', true, ['class' => 'main_menu_icon invert_filter'], false, false, false, true); + $output = html_print_image( + 'images/network-server@os.svg', + true, + ['class' => 'main_menu_icon invert_filter'], + false, + false, + false, + true + ); } else { // Software. $options['title'] = __('Software'); - $output = html_print_image('images/data-server@svg.svg', true, ['class' => 'main_menu_icon invert_filter'], false, false, false, true); + $output = html_print_image( + 'images/data-server@svg.svg', + true, + ['class' => 'main_menu_icon invert_filter'], + false, + false, + false, + true + ); } return $output; diff --git a/pandora_console/include/styles/pandora_black.css b/pandora_console/include/styles/pandora_black.css index 86b0172909..9c1fca7462 100644 --- a/pandora_console/include/styles/pandora_black.css +++ b/pandora_console/include/styles/pandora_black.css @@ -1297,8 +1297,9 @@ a.pandora_pagination:hover { filter: brightness(0) contrast(50%) !important; } -input[type="image"] { +input:not(div.login_pass > input):not(div.login_nick > input[type="image"]) { background-color: transparent !important; + color: inherit !important; } .databox_color { diff --git a/pandora_console/operation/visual_console/view.php b/pandora_console/operation/visual_console/view.php index 3114671e9c..fde52505d1 100644 --- a/pandora_console/operation/visual_console/view.php +++ b/pandora_console/operation/visual_console/view.php @@ -280,25 +280,25 @@ if ($pure === false) { $class_delete = 'delete_item delete_min'; $class_copy = 'copy_item'; if ($config['style'] === 'pandora_black' && is_metaconsole() === false) { - $class_camera = 'camera_min_white link-create-item'; - $class_percentile = 'percentile_item_min_white link-create-item'; - $class_module_graph = 'graph_min_white link-create-item'; - $class_donut = 'donut_graph_min_white link-create-item'; - $class_bars = 'bars_graph_min_white link-create-item'; - $class_value = 'binary_min_white link-create-item'; - $class_sla = 'auto_sla_graph_min_white link-create-item'; - $class_label = 'label_min_white link-create-item'; - $class_icon = 'icon_min_white link-create-item'; - $class_clock = 'clock_min_white link-create-item'; - $class_group = 'group_item_min_white link-create-item'; - $class_box = 'box_item_white link-create-item'; - $class_line = 'line_item_white link-create-item'; - $class_cloud = 'color_cloud_min_white link-create-item'; - $class_nlink = 'network_link_min_white link-create-item'; - $class_odometer = 'odometer_min_white link-create-item'; - $class_basic_chart = 'basic_chart_min_white link-create-item'; - $class_delete = 'delete_item_white delete_min_white'; - $class_copy = 'copy_item_white'; + $class_camera .= ' invert_filter'; + $class_percentile .= ' invert_filter'; + $class_module_graph .= ' invert_filter'; + $class_donut .= ' invert_filter'; + $class_bars .= ' invert_filter'; + $class_value .= ' invert_filter'; + $class_sla .= ' invert_filter'; + $class_label .= ' invert_filter'; + $class_icon .= ' invert_filter'; + $class_clock .= ' invert_filter'; + $class_group .= ' invert_filter'; + $class_box .= ' invert_filter'; + $class_line .= ' invert_filter'; + $class_cloud .= ' invert_filter'; + $class_nlink .= ' invert_filter'; + $class_odometer .= ' invert_filter'; + $class_basic_chart .= ' invert_filter'; + $class_delete .= ' invert_filter'; + $class_copy .= ' invert_filter'; } visual_map_print_button_editor_refactor(