From 1b812155e779002bf0481926fb9bf5e4421a4b38 Mon Sep 17 00:00:00 2001 From: Jorge Rincon Date: Mon, 29 Apr 2024 10:15:02 +0200 Subject: [PATCH] #13527 Fixed dark theme styles sound console --- pandora_console/include/ajax/events.php | 2 +- .../include/javascript/pandora_events.js | 22 +++---------------- .../include/styles/pandora_black.css | 7 +++++- .../operation/events/sound_events.php | 4 ++-- 4 files changed, 12 insertions(+), 23 deletions(-) diff --git a/pandora_console/include/ajax/events.php b/pandora_console/include/ajax/events.php index a063ef5c8b..b053d304b6 100644 --- a/pandora_console/include/ajax/events.php +++ b/pandora_console/include/ajax/events.php @@ -2541,7 +2541,7 @@ if ($drawConsoleSound === true) { true, [ 'title' => __('No alerts discovered'), - 'class' => 'invert_filter', + 'class' => '', ] ); $output .= ''; diff --git a/pandora_console/include/javascript/pandora_events.js b/pandora_console/include/javascript/pandora_events.js index 09ddee825c..2d7f5b0fca 100644 --- a/pandora_console/include/javascript/pandora_events.js +++ b/pandora_console/include/javascript/pandora_events.js @@ -1066,7 +1066,7 @@ function openSoundEventsDialog(settings, dialog_parameters) { resizable: false, modal: false, width: 600, - height: 600, + height: 700, dialogClass: "modal-sound", open: function() { $.ajax({ @@ -1102,24 +1102,8 @@ function openSoundEventsDialog(settings, dialog_parameters) { if (mode == 0) { action = true; } - if ($("#button-start-search").hasClass("play")) { - $("#modal-sound").css({ - height: "500px" - }); - $("#modal-sound") - .parent() - .css({ - height: "550px" - }); - } else { - $("#modal-sound").css({ - height: "450px" - }); - $("#modal-sound") - .parent() - .css({ - height: "500px" - }); + if (!$("#button-start-search").hasClass("play")) { + $("#progressbar_time").empty(); } action_events_sound(action, settings); diff --git a/pandora_console/include/styles/pandora_black.css b/pandora_console/include/styles/pandora_black.css index aa27e0fbf8..fae2a929b1 100644 --- a/pandora_console/include/styles/pandora_black.css +++ b/pandora_console/include/styles/pandora_black.css @@ -556,6 +556,11 @@ table#diagnostic_info tbody td div { color: var(--text-color) !important; } +.ui-widget-dialog-border, +.ui-dialog { + border: 1px solid #333 !important; +} + #cancel_btn_dialog { background-color: red; } @@ -1443,7 +1448,7 @@ button.submitButton { button.buttonButton.secondary, button.submitButton.secondary { background-color: #999; - color: var(--text-color); + color: var(--text-color) !important; border-color: #fff; } diff --git a/pandora_console/operation/events/sound_events.php b/pandora_console/operation/events/sound_events.php index 42ff6af0cb..50dae7b9af 100644 --- a/pandora_console/operation/events/sound_events.php +++ b/pandora_console/operation/events/sound_events.php @@ -96,7 +96,7 @@ if ($config['style'] === 'pandora_black' && !is_metaconsole()) { echo ''; echo ''; -$output = '
'; +$output = '
'; // Header tabs. $output .= '
    '; $output .= '
  • '; @@ -264,7 +264,7 @@ $output = '
    '; true, [ 'title' => __('No alerts discovered'), - 'class' => 'invert_filter', + 'class' => '', ] ); $output .= '';