From 2d40641a9d885f41739275a1c211c290030598e9 Mon Sep 17 00:00:00 2001 From: Jorge Rincon Date: Wed, 14 Jun 2023 11:11:22 +0200 Subject: [PATCH] #11541 Adjusted the background of the autocomplete Agent according to the selected theme --- pandora_console/include/functions_ui.php | 5 ++++- pandora_console/include/styles/pandora_black.css | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 24fb0ca360..db25ceb7a4 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -5616,6 +5616,9 @@ function ui_print_agent_autocomplete_input($parameters) if ($config['style'] === 'pandora_black' && !is_metaconsole()) { $text_color = 'style="color: white"'; $icon_agent = 'images/agent_mc.menu.png'; + $background_results = 'background: #111;'; + } else { + $background_results = 'background: #a8e7eb;'; } $icon_image = html_print_image($icon_agent, true, false, true); @@ -6289,7 +6292,7 @@ function ui_print_agent_autocomplete_input($parameters) .appendTo(ul); break; case \'alias\': - return $("
  • ") + return $("
  • ") .data("item.autocomplete", item) .append(text) .appendTo(ul); diff --git a/pandora_console/include/styles/pandora_black.css b/pandora_console/include/styles/pandora_black.css index 420baf94c9..4b0a6b7004 100644 --- a/pandora_console/include/styles/pandora_black.css +++ b/pandora_console/include/styles/pandora_black.css @@ -39,7 +39,7 @@ select, .selection, button.sub, .select2-container .select2-selection--single, -.select2-container .select2-selection--multiple { +.select2-container { background-color: #111 !important; color: #fff !important; } @@ -1435,8 +1435,9 @@ button.submitButton.secondary:hover > div { } select[multiple] option:checked, -select[multiple] option:active { - background: #008d86; +select[multiple] option:active, +select[multiple] option:hover { + background: #008d86 !important; } .select2-search.select2-search--dropdown,