From 6846961ff002a5286a43fa21283927f7275d50bb Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Fri, 3 Mar 2023 14:50:47 +0100 Subject: [PATCH] Icon updates --- .../godmode/reporting/graph_builder.php | 14 ++++++------ pandora_console/godmode/reporting/graphs.php | 6 ++--- pandora_console/include/styles/pandora.css | 7 ++++++ .../operation/reporting/graph_viewer.php | 22 +++++++++---------- 4 files changed, 28 insertions(+), 21 deletions(-) diff --git a/pandora_console/godmode/reporting/graph_builder.php b/pandora_console/godmode/reporting/graph_builder.php index bd1fd74f24..6c006a8059 100644 --- a/pandora_console/godmode/reporting/graph_builder.php +++ b/pandora_console/godmode/reporting/graph_builder.php @@ -287,22 +287,22 @@ if ($edit_graph === true) { 'graph_list' => [ 'active' => false, 'text' => ''.html_print_image( - 'images/list.png', + 'images/logs@svg.svg', true, [ 'title' => __('Graph list'), - 'class' => 'invert_filter', + 'class' => 'main_menu_icon invert_filter', ] ).'', ], 'main' => [ 'active' => false, 'text' => ''.html_print_image( - 'images/chart.png', + 'images/graph@svg.svg', true, [ 'title' => __('Main data'), - 'class' => 'invert_filter', + 'class' => 'main_menu_icon invert_filter', ] ).'', ], @@ -313,18 +313,18 @@ if ($edit_graph === true) { true, [ 'title' => __('Graph editor'), - 'class' => 'invert_filter', + 'class' => 'main_menu_icon invert_filter', ] ).'', ], 'view' => [ 'active' => false, 'text' => ''.html_print_image( - 'images/eye.png', + 'images/enable.svg', true, [ 'title' => __('View graph'), - 'class' => 'invert_filter', + 'class' => 'main_menu_icon invert_filter', ] ).'', diff --git a/pandora_console/godmode/reporting/graphs.php b/pandora_console/godmode/reporting/graphs.php index 302bb0c80f..69c203bfb9 100644 --- a/pandora_console/godmode/reporting/graphs.php +++ b/pandora_console/godmode/reporting/graphs.php @@ -14,7 +14,7 @@ * |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______| * * ============================================================================ - * Copyright (c) 2005-2021 Artica Soluciones Tecnologicas + * Copyright (c) 2005-2023 Artica Soluciones Tecnologicas * Please see http://pandorafms.org for full contribution list * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -61,11 +61,11 @@ if (enterprise_include_once('include/functions_reporting.php') !== ENTERPRISE_NO $buttons['graph_list'] = [ 'active' => true, 'text' => ''.html_print_image( - 'images/list.png', + 'images/logs@svg.svg', true, [ 'title' => __('Graph list'), - 'class' => 'invert_filter', + 'class' => 'main_menu_icon invert_filter', ] ).'', ]; diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index e18e0a5c7d..f58f576a55 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -11176,6 +11176,13 @@ table.table_modal_alternate height: 20px; } +.main_menu_icon.arrow_up { + transform: rotate(90deg); +} + +.main_menu_icon.arrow_down { + transform: rotate(270deg); +} .after_input_icon { width: 32px; margin-left: 10px; diff --git a/pandora_console/operation/reporting/graph_viewer.php b/pandora_console/operation/reporting/graph_viewer.php index 984d45ac11..58ac9e5221 100644 --- a/pandora_console/operation/reporting/graph_viewer.php +++ b/pandora_console/operation/reporting/graph_viewer.php @@ -176,18 +176,18 @@ if ($view_graph) { 'graph_list' => [ 'active' => false, 'text' => ''.html_print_image( - 'images/list.png', + 'images/logs@svg.svg', true, [ 'title' => __('Graph list'), - 'class' => 'invert_filter', + 'class' => 'main_menu_icon invert_filter', ] ).'', ], 'main' => [ 'active' => false, 'text' => ''.html_print_image( - 'images/chart.png', + 'images/graph@svg.svg', true, [ 'title' => __('Main data'), @@ -202,7 +202,7 @@ if ($view_graph) { true, [ 'title' => __('Graph editor'), - 'class' => 'invert_filter', + 'class' => 'main_menu_icon invert_filter', ] ).'', ], @@ -211,37 +211,37 @@ if ($view_graph) { $options = [ 'graph_list' => [ 'active' => false, - 'text' => ''.html_print_image('images/list.png', true, ['title' => __('Graph list')]).'', + 'text' => ''.html_print_image('images/logs@svg.svg', true, ['title' => __('Graph list'), 'class' => 'main_menu_icon invert_filter']).'', ], ]; } $options['view']['text'] = ''.html_print_image( - 'images/eye.png', + 'images/enable.svg', true, [ 'title' => __('View graph'), - 'class' => 'invert_filter', + 'class' => 'main_menu_icon invert_filter', ] ).''; $options['view']['active'] = true; if ($config['pure'] == 0) { $options['screen']['text'] = "".html_print_image( - 'images/full_screen.png', + 'images/fullscreen@svg.svg', true, [ 'title' => __('Full screen mode'), - 'class' => 'invert_filter', + 'class' => 'main_menu_icon invert_filter', ] ).''; } else { $options['screen']['text'] = "".html_print_image( - 'images/normal_screen.png', + 'images/exit_fullscreen@svg.svg', true, [ 'title' => __('Back to normal mode'), - 'class' => 'invert_filter', + 'class' => 'main_menu_icon invert_filter', ] ).'';