From 39b75cf9463e8e9ea2a80f98d4234d40fa32bb2d Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Thu, 11 Apr 2024 15:22:40 +0200 Subject: [PATCH] 13414-Fix multiselect2 dark theme --- .../godmode/agentes/module_manager.php | 2 +- .../agentes/module_manager_editor_common.php | 6 +++--- pandora_console/include/styles/pandora.css | 8 ++++++++ .../include/styles/pandora_black.css | 17 +++++++++++++++++ 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/pandora_console/godmode/agentes/module_manager.php b/pandora_console/godmode/agentes/module_manager.php index 279872b744..3832461da0 100644 --- a/pandora_console/godmode/agentes/module_manager.php +++ b/pandora_console/godmode/agentes/module_manager.php @@ -1208,7 +1208,7 @@ $createModuleTable->data[1][] = html_print_label_input_block( html_print_anchor( [ 'href' => 'https://pandorafms.com/Library/Library/', - 'class' => 'color-black-grey invert_filter', + 'class' => 'color-black-grey', 'content' => __('Get more modules on Monitoring Library'), ], true diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index 3b858f23a3..c535c1bb31 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -442,7 +442,7 @@ $tableBasicThresholds->rowclass = []; $tableBasicThresholds->data = []; // WARNING THRESHOLD. -$tableBasicThresholds->rowclass['caption_warning_threshold'] = 'field_half_width pdd_t_10px'; +$tableBasicThresholds->rowclass['caption_warning_threshold'] = 'field_half_width'; $tableBasicThresholds->rowclass['warning_threshold'] = 'field_half_width'; $tableBasicThresholds->data['caption_warning_threshold'][0] .= __('Warning threshold').' '; @@ -617,7 +617,7 @@ $tableBasicThresholds->data['critical_threshold'][0] .= html_print_input_text( $classdisabledBecauseInPolicy ); -$table_simple->rowstyle['thresholds_table'] = 'margin-top: 15px;height: 400px;width: 100%'; +$table_simple->rowstyle['thresholds_table'] = 'margin-top: 15px;height: 450px;width: 100%'; $table_simple->cellclass['thresholds_table'][0] = 'table_section half_section_left'; $table_simple->data['thresholds_table'][0] = html_print_table($tableBasicThresholds, true); if (modules_is_string_type($id_module_type) === false || (bool) $edit === true) { @@ -896,7 +896,7 @@ $tagsAvailableData .= html_print_image( [ 'id' => 'right', 'title' => __('Add tags to module'), - 'class' => 'main_menu_icon invert_filter clickable mrgn_lft_5px', + 'class' => 'main_menu_icon invert_filter clickable mrgn_lft_5px black-and-white', ] ); diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 22c1ba704c..a0235258d9 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -14197,3 +14197,11 @@ table#snmp_console tbody .datos_orange * { background-color: var(--events-priority-bg-orange); color: var(--events-priority-text-orange) !important; } + +.black-and-white { + filter: saturate(0); +} + +.invert_filter.black-and-white { + filter: invert(1) saturate(0) !important; +} diff --git a/pandora_console/include/styles/pandora_black.css b/pandora_console/include/styles/pandora_black.css index e51b51f489..62ba6f5a04 100644 --- a/pandora_console/include/styles/pandora_black.css +++ b/pandora_console/include/styles/pandora_black.css @@ -2005,6 +2005,23 @@ div.show_result_interpreter { border-top: 0; } +.switch_radio_button input:checked + label { + color: var(--text-color) !important; +} + +.tags_selected_container > span.select2 { + background-color: #111 !important; +} + +.select2-container .select2-selection--single, +.select2-container .select2-selection--multiple { + border-color: #707070 !important; +} + +.select2-container.select2-container--focus .select2-selection--multiple { + border-color: #8a96a6 !important; +} + th { border-bottom: 1px solid var(--border-color); }