From a73c8347edb856148931bd9ea287c3d6287bce0a Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Thu, 20 Apr 2023 10:01:35 +0200 Subject: [PATCH] changed icons --- .../include/class/AgentDeployWizard.class.php | 38 ++++++------------- .../include/styles/agent_deploy_wizard.css | 12 ++++++ 2 files changed, 23 insertions(+), 27 deletions(-) diff --git a/pandora_console/include/class/AgentDeployWizard.class.php b/pandora_console/include/class/AgentDeployWizard.class.php index 6257cd9ed6..7815c74bea 100644 --- a/pandora_console/include/class/AgentDeployWizard.class.php +++ b/pandora_console/include/class/AgentDeployWizard.class.php @@ -231,7 +231,7 @@ class AgentDeployWizard $tableConfiguration->rowspan = []; $windows_label_img = html_print_image( - '/images/windows@os.svg', + '/images/windows-grey@svg.svg', true, ['class' => 'installer-title-icon main_menu_icon'] ); @@ -245,7 +245,7 @@ class AgentDeployWizard ); $linux_label_img = html_print_image( - '/images/linux@os.svg', + '/images/linux-grey@svg.svg', true, ['class' => 'installer-title-icon main_menu_icon'] ); @@ -259,7 +259,7 @@ class AgentDeployWizard ); $mac_label_img = html_print_image( - '/images/apple@os.svg', + '/images/apple-grey@svg.svg', true, ['class' => 'installer-title-icon main_menu_icon'] ); @@ -312,21 +312,13 @@ class AgentDeployWizard html_print_div( [ 'id' => 'os_selector', - 'class' => 'switch_radio_button', + 'class' => 'switch_radio_button custom-switch-radio-button', 'content' => implode('', $switchButtons), ], true ).$sub_tip ); - /*$stepper_container = html_print_div( - [ - 'class' => 'switch_radio_button', - 'content' - ], - true - );*/ - $server_add_help_tip = ui_print_help_tip( __('Use your %s Data Server IP address here. It must be possible to establish a connection from the agent to port 41121/tcp of this address.', get_product_name()), true @@ -438,9 +430,9 @@ class AgentDeployWizard // Start of Unix / Linux installer section. $title = html_print_image( - '/images/linux@os.svg', + '/images/linux-grey@svg.svg', true, - ['class' => 'installer-title-icon main_menu_icon'] + ['class' => 'installer-title-icon main_menu_icon svg-brightness-0'] ); $title .= ''.__('Linux agent').''; @@ -480,9 +472,9 @@ class AgentDeployWizard // Start of Windows installer section. $title = html_print_image( - '/images/windows@os.svg', + '/images/windows-grey@svg.svg', true, - ['class' => 'installer-title-icon main_menu_icon'] + ['class' => 'installer-title-icon main_menu_icon svg-brightness-0'] ); $title .= ''.__('Windows agent').''; @@ -512,9 +504,9 @@ class AgentDeployWizard // Start of MacOS installer section. $title = html_print_image( - '/images/apple@os.svg', + '/images/apple-grey@svg.svg', true, - ['class' => 'installer-title-icon main_menu_icon'] + ['class' => 'installer-title-icon main_menu_icon svg-brightness-0'] ); $title .= ''.__('Mac agent').''; @@ -670,10 +662,8 @@ class AgentDeployWizard $('#installer_page').show(); var os_val = $('input[name="os"]:checked').val(); - var module_definition_val = $('input[name="module_definition"]:checked').val(); var server_addr_val = $('input[name="server_addr"]').val(); var group_val = $('[name="group"] option:selected').text(); - var win_installer_command = `curl -k "https://firefly.artica.es/pandorafms/latest/Windows/Pandora%20FMS%20Windows%20Agent%20v7.0NG.x86_64.exe" -o PandoraFMS_Windows_Agent_7.0NG.x86_64.exe ; ./PandoraFMS_Windows_Agent_7.0NG.x86_64.exe /S --ip ${server_addr_val} --group ${group_val} --remote_config 1`; var linux_installer_command = `export PANDORA_SERVER_IP='${server_addr_val}' && \\ \nexport PANDORA_REMOTE_CONFIG=1 && \\ \nexport PANDORA_GROUP='${group_val}' && \\ \ncurl -Ls https://pfms.me/agent-deploy | bash`; @@ -743,13 +733,7 @@ class AgentDeployWizard var stepper_container = $('#stepper_container'); var stepper = new Stepper(stepper_container, stepper_step_names); - /* - { - 1: 'Step One', - 2: 'Step Two', - 3: 'Step 3', - } - */ + stepper.render(); // Initial step: 1. diff --git a/pandora_console/include/styles/agent_deploy_wizard.css b/pandora_console/include/styles/agent_deploy_wizard.css index 561e10c892..906b20500c 100644 --- a/pandora_console/include/styles/agent_deploy_wizard.css +++ b/pandora_console/include/styles/agent_deploy_wizard.css @@ -83,3 +83,15 @@ .green-link:hover { color: #0d312f !important; } + +.custom-switch-radio-button > label { + color: #444 !important; +} + +.custom-switch-radio-button input:checked + label img { + filter: brightness(100); +} + +.svg-brightness-0 { + filter: brightness(0); +}