Ticket 10394 Black theme fixes

This commit is contained in:
Jose Gonzalez 2023-02-22 16:24:11 +01:00
parent ac4a76d653
commit 0380e8a10c
15 changed files with 101 additions and 45 deletions

View File

@ -363,7 +363,7 @@ echo sprintf('<div id="header_table" class="header_table_%s">', $menuTypeClass);
'images/send_feedback@header.svg', 'images/send_feedback@header.svg',
true, true,
[ [
'class' => 'main_menu_icon', 'class' => 'main_menu_icon invert_filter',
'title' => __('Feedback'), 'title' => __('Feedback'),
'id' => 'feedback-header', 'id' => 'feedback-header',
'alt' => __('Feedback'), 'alt' => __('Feedback'),
@ -417,7 +417,7 @@ echo sprintf('<div id="header_table" class="header_table_%s">', $menuTypeClass);
true, true,
[ [
'title' => __('Edit my user'), 'title' => __('Edit my user'),
'class' => 'main_menu_icon bot', 'class' => 'main_menu_icon bot invert_filter',
'alt' => 'user', 'alt' => 'user',
] ]
); );

View File

@ -837,7 +837,7 @@ if ($agents !== false) {
// Operating System icon column. // Operating System icon column.
$osIconColumn = html_print_div( $osIconColumn = html_print_div(
[ [
'class' => 'main_menu_icon', 'class' => 'main_menu_icon invert_filter',
'content' => ui_print_os_icon($agent['id_os'], false, true), 'content' => ui_print_os_icon($agent['id_os'], false, true),
], ],
true true
@ -856,7 +856,7 @@ if ($agents !== false) {
// Group icon and name column. // Group icon and name column.
$agentGroupIconColumn = html_print_div( $agentGroupIconColumn = html_print_div(
[ [
'class' => 'main_menu_icon', 'class' => 'main_menu_icon invert_filter',
'content' => ui_print_group_icon($agent['id_grupo'], true), 'content' => ui_print_group_icon($agent['id_grupo'], true),
], ],
true true

View File

@ -188,7 +188,7 @@ if (empty($result) === false) {
true, true,
[ [
'title' => __('Edit'), 'title' => __('Edit'),
'class' => 'main_menu_icon', 'class' => 'main_menu_icon invert_filter',
] ]
).'</a>&nbsp;&nbsp;'; ).'</a>&nbsp;&nbsp;';
$data[1] .= '<a href="index.php?sec=advanced&sec2=godmode/category/category&delete_category='.$category['id'].'&pure='.(int) $config['pure'].'"onclick="if (! confirm (\''.__('Are you sure?').'\')) return false">'.html_print_image( $data[1] .= '<a href="index.php?sec=advanced&sec2=godmode/category/category&delete_category='.$category['id'].'&pure='.(int) $config['pure'].'"onclick="if (! confirm (\''.__('Are you sure?').'\')) return false">'.html_print_image(
@ -196,7 +196,7 @@ if (empty($result) === false) {
true, true,
[ [
'title' => __('Delete'), 'title' => __('Delete'),
'class' => 'main_menu_icon', 'class' => 'main_menu_icon invert_filter',
] ]
).'</a>'; ).'</a>';
} else { } else {
@ -217,7 +217,7 @@ if (empty($result) === false) {
true, true,
[ [
'title' => __('Edit'), 'title' => __('Edit'),
'class' => 'main_menu_icon', 'class' => 'main_menu_icon invert_filter',
] ]
), ),
], ],
@ -233,7 +233,7 @@ if (empty($result) === false) {
true, true,
[ [
'title' => __('Delete'), 'title' => __('Delete'),
'class' => 'main_menu_icon', 'class' => 'main_menu_icon invert_filter',
] ]
), ),
], ],

View File

@ -281,10 +281,10 @@ if (empty($groups) === false) {
if ($is_management_allowed === true) { if ($is_management_allowed === true) {
$data[1] = '<strong><a href="index.php?sec=gmodules&sec2=godmode/groups/configure_modu_group&id_group='.$id_group['id_mg'].'">'.ui_print_truncate_text($id_group['name'], GENERIC_SIZE_TEXT).'</a></strong>'; $data[1] = '<strong><a href="index.php?sec=gmodules&sec2=godmode/groups/configure_modu_group&id_group='.$id_group['id_mg'].'">'.ui_print_truncate_text($id_group['name'], GENERIC_SIZE_TEXT).'</a></strong>';
if (is_metaconsole() === true) { if (is_metaconsole() === true) {
$data[2] = '<a href="index.php?sec=advanced&sec2=advanced/component_management&tab=module_group&id_group='.$id_group['id_mg'].'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">'.html_print_image('images/delete.svg', true, ['class' => 'main_menu_icon']).'</a>'; $data[2] = '<a href="index.php?sec=advanced&sec2=advanced/component_management&tab=module_group&id_group='.$id_group['id_mg'].'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">'.html_print_image('images/delete.svg', true, ['class' => 'main_menu_icon invert_filter']).'</a>';
} else { } else {
$table->cellclass[][2] = 'table_action_buttons'; $table->cellclass[][2] = 'table_action_buttons';
$data[2] = '<a href="index.php?sec=gmodules&sec2=godmode/groups/modu_group_list&id_group='.$id_group['id_mg'].'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">'.html_print_image('images/delete.svg', true, ['class' => 'main_menu_icon']).'</a>'; $data[2] = '<a href="index.php?sec=gmodules&sec2=godmode/groups/modu_group_list&id_group='.$id_group['id_mg'].'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">'.html_print_image('images/delete.svg', true, ['class' => 'main_menu_icon invert_filter']).'</a>';
} }
} else { } else {
$data[1] = '<strong>'; $data[1] = '<strong>';

View File

@ -301,7 +301,7 @@ foreach ($groups as $group) {
[ [
'onClick' => 'if(confirm(\"'.__('Are you sure?').'\")) return true; else return false;', 'onClick' => 'if(confirm(\"'.__('Are you sure?').'\")) return true; else return false;',
'href' => 'index.php?sec='.$sec.'&sec2=godmode/modules/manage_nc_groups&delete=1&id='.$group['id_sg'].'&offset=0', 'href' => 'index.php?sec='.$sec.'&sec2=godmode/modules/manage_nc_groups&delete=1&id='.$group['id_sg'].'&offset=0',
'content' => html_print_image('images/delete.svg', true, ['title' => __('Delete'), 'class' => 'main_menu_icon']), 'content' => html_print_image('images/delete.svg', true, ['title' => __('Delete'), 'class' => 'main_menu_icon invert_filter']),
], ],
true true
); );

View File

@ -1181,7 +1181,7 @@ switch ($action) {
true, true,
[ [
'title' => __('Edit'), 'title' => __('Edit'),
'class' => 'main_menu_icon', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$tableActionButtons[] = html_print_input_hidden( $tableActionButtons[] = html_print_input_hidden(
@ -1211,7 +1211,7 @@ switch ($action) {
true, true,
[ [
'title' => __('Duplicate'), 'title' => __('Duplicate'),
'class' => 'main_menu_icon', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$tableActionButtons[] = '</form> '; $tableActionButtons[] = '</form> ';
@ -1226,7 +1226,7 @@ switch ($action) {
true, true,
[ [
'title' => __('Delete'), 'title' => __('Delete'),
'class' => 'main_menu_icon', 'class' => 'main_menu_icon invert_filter',
] ]
); );
$tableActionButtons[] = html_print_input_hidden( $tableActionButtons[] = html_print_input_hidden(

View File

@ -493,7 +493,7 @@ if (empty($create) === false || empty($view) === false) {
'title' => __('Save changes'), 'title' => __('Save changes'),
'href' => 'index.php?sec=gservers&sec2=godmode/servers/plugin&filemanager=1&tab=Attachments&id_plugin='.$form_id, 'href' => 'index.php?sec=gservers&sec2=godmode/servers/plugin&filemanager=1&tab=Attachments&id_plugin='.$form_id,
'class' => 'mrgn_lft_5px', 'class' => 'mrgn_lft_5px',
'content' => html_print_image('images/validate.svg', true, ['class' => 'main_menu_icon invert_filter'], false, true), 'content' => html_print_image('images/validate.svg', true, ['class' => 'invert_filter main_menu_icon'], false, true),
], ],
true true
); );
@ -1003,7 +1003,7 @@ if (empty($create) === false || empty($view) === false) {
true, true,
[ [
'title' => __('Lock'), 'title' => __('Lock'),
'class' => 'main_menu_icon invert_filter', 'class' => 'invert_filter main_menu_icon',
] ]
), ),
], ],

View File

@ -104,7 +104,7 @@ $table->data = [];
foreach ($osList as $os) { foreach ($osList as $os) {
$data = []; $data = [];
$data[] = $os['id_os']; $data[] = $os['id_os'];
$data[] = html_print_div(['class' => 'main_menu_icon', 'content' => ui_print_os_icon($os['id_os'], false, true)], true); $data[] = html_print_div(['class' => 'invert_filter main_menu_icon', 'content' => ui_print_os_icon($os['id_os'], false, true)], true);
if ($is_management_allowed === true) { if ($is_management_allowed === true) {
if (is_metaconsole() === true) { if (is_metaconsole() === true) {
$osNameUrl = 'index.php?sec=advanced&sec2=advanced/component_management&tab=os_manage&action=edit&tab2=builder&id_os='.$os['id_os']; $osNameUrl = 'index.php?sec=advanced&sec2=advanced/component_management&tab=os_manage&action=edit&tab2=builder&id_os='.$os['id_os'];

View File

@ -401,7 +401,7 @@ $img = html_print_image(
true, true,
[ [
'border' => 0, 'border' => 0,
'class' => 'main_menu_icon', 'class' => 'invert_filter main_menu_icon',
] ]
); );
@ -444,7 +444,7 @@ foreach ($profiles as $profile) {
true, true,
[ [
'title' => __('Edit'), 'title' => __('Edit'),
'class' => 'main_menu_icon', 'class' => 'invert_filter main_menu_icon',
] ]
).'</a>'; ).'</a>';
if ((bool) check_acl($config['id_user'], 0, 'PM') === true || (bool) users_is_admin() === true) { if ((bool) check_acl($config['id_user'], 0, 'PM') === true || (bool) users_is_admin() === true) {
@ -457,7 +457,7 @@ foreach ($profiles as $profile) {
true, true,
[ [
'title' => __('Delete'), 'title' => __('Delete'),
'class' => 'main_menu_icon', 'class' => 'invert_filter main_menu_icon',
] ]
), ),
], ],

View File

@ -407,7 +407,7 @@ $select_out = html_print_select(
true, true,
'', '',
false, false,
'width:100%' 'width:100%;'
); );
$select_in = html_print_select( $select_in = html_print_select(
@ -422,7 +422,7 @@ $select_in = html_print_select(
true, true,
'', '',
false, false,
'width:100%' 'width:100%;'
); );
// Full list pages generation. // Full list pages generation.

View File

@ -4231,7 +4231,7 @@ function events_page_details($event, $server_id=0)
$data = []; $data = [];
$data[0] = '<div class="normal_weight mrgn_lft_20px">'.__('OS').'</div>'; $data[0] = '<div class="normal_weight mrgn_lft_20px">'.__('OS').'</div>';
$data[1] = '<div style="display:flex"><div class="main_menu_icon">'.ui_print_os_icon($agent['id_os'], false, true).'</div>'; $data[1] = '<div style="display:flex"><div class="main_menu_icon invert_filter">'.ui_print_os_icon($agent['id_os'], false, true).'</div>';
$data[1] .= get_os_name($agent['id_os']); $data[1] .= get_os_name($agent['id_os']);
if (empty($agent['os_version']) === false) { if (empty($agent['os_version']) === false) {
$data[1] .= ' ('.$agent['os_version'].')'; $data[1] .= ' ('.$agent['os_version'].')';

View File

@ -153,7 +153,7 @@ html {
} }
body { body {
background-color: #fbfbfb; background-color: #f6f7fb;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -10341,8 +10341,8 @@ button div.sound {
} }
button div.add { button div.add {
mask: url(../../images/plus.svg) no-repeat center / contain; mask: url(../../images/wizard@svg.svg) no-repeat center / contain;
-webkit-mask: url(../../images/plus.svg) no-repeat center / contain; -webkit-mask: url(../../images/wizard@svg.svg) no-repeat center / contain;
} }
button div.delete { button div.delete {

View File

@ -37,7 +37,9 @@ select,
.edit_user_comments #textarea_comments, .edit_user_comments #textarea_comments,
.discovery_textarea_input, .discovery_textarea_input,
.selection, .selection,
button.sub { button.sub,
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
background-color: #111 !important; background-color: #111 !important;
color: #fff !important; color: #fff !important;
} }
@ -65,6 +67,14 @@ table.agent_info_table tr {
color: #fff !important; color: #fff !important;
} }
div#head,
#menu_tabs {
border-bottom: 1px solid #1a1a1a;
}
#menu_full {
border-right: 1px solid #111;
}
.logo_green { .logo_green {
background-color: #000; background-color: #000;
} }
@ -89,6 +99,7 @@ table.agent_info_table tr {
font-size: 10pt; font-size: 10pt;
} }
.moduleIdBox,
input[readonly] { input[readonly] {
background-color: #444 !important; background-color: #444 !important;
color: #a2a2a2 !important; color: #a2a2a2 !important;
@ -175,6 +186,11 @@ input.pure_full {
background-color: #888; background-color: #888;
} }
.p-slider:before {
background-color: #fff;
box-shadow: 0px 3px 6px #494949;
border: 1px solid #222;
}
.fileupload_form, .fileupload_form,
#button-pure { #button-pure {
background-color: #222 !important; background-color: #222 !important;
@ -540,21 +556,20 @@ div#form_activate_licence #code {
#menu_tab_frame, #menu_tab_frame,
#menu_tab_frame_view, #menu_tab_frame_view,
#menu_tab_frame_view_bc { #menu_tab_frame_view_bc {
/*
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
justify-content: space-between; justify-content: space-between;
border-bottom: 2px solid #82b92e; */
min-height: 50px; border-bottom: 1px solid #82b92e;
width: calc(100% + 3em); /*
width: 100%;
padding-right: 0px; padding-right: 0px;
margin-bottom: 20px; margin-bottom: 20px;
height: 50px; height: 53px;
box-sizing: border-box; box-sizing: border-box;
*/
background-color: #111 !important; background-color: #111 !important;
border-top-right-radius: 7px;
border-top-left-radius: 7px;
box-shadow: 1px 1px 4px rgba(160, 160, 160, 0.514);
margin-left: -3em;
} }
.info_box { .info_box {
@ -661,6 +676,7 @@ div#main_pure {
position: static; position: static;
} }
div#main,
body.pure { body.pure {
background-color: #111; background-color: #111;
} }
@ -1007,6 +1023,7 @@ fieldset {
input, input,
textarea, textarea,
select, select,
.moduleIdBox,
.selection { .selection {
border-color: #707070; border-color: #707070;
} }
@ -1024,6 +1041,9 @@ select,
color: #fff !important; color: #fff !important;
} }
.white_table_graph {
background-color: #222 !important;
}
table.databox { table.databox {
border-color: #707070; border-color: #707070;
background-color: #222 !important; background-color: #222 !important;
@ -1143,6 +1163,13 @@ a.pandora_pagination,
border: 1px solid #707070 !important; border: 1px solid #707070 !important;
} }
a.pandora_pagination {
background-color: #111;
}
a.pandora_pagination:hover {
background-color: #555 !important;
}
.dt-button.buttons-csv.buttons-html5 { .dt-button.buttons-csv.buttons-html5 {
filter: invert(100%); filter: invert(100%);
background-color: transparent; background-color: transparent;
@ -1299,3 +1326,35 @@ p.trademark-copyright {
height: 80%; height: 80%;
overflow: auto; overflow: auto;
} }
.action_buttons_background_mask {
background-color: #222;
}
button.buttonButton,
button.submitButton {
box-shadow: 0px 3px 6px #111;
}
.fixed_filter_bar {
background-color: #222;
}
.section_table_title_line {
background-color: #008d86;
}
.section_table_title {
color: #008d86;
}
select[multiple] option:checked,
select[multiple] option:active {
background: #008d86;
}
.select2-results
> .select2-results__options
> .select2-results__option.select2-results__option--highlighted {
background-color: #008d86;
}

View File

@ -12,7 +12,7 @@
height: 28px; height: 28px;
user-select: none; user-select: none;
-webkit-user-select: none; -webkit-user-select: none;
color: white; color: white !important;
} }
.select2-container .select2-selection--single .select2-selection__rendered { .select2-container .select2-selection--single .select2-selection__rendered {
display: block; display: block;
@ -21,9 +21,12 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
color: white; color: white !important;
text-align: left; text-align: left;
} }
.select2-container--default>.selection>.select2-selection--single {
border-color: #707070 !important;
}
.select2-container .select2-selection--single .select2-selection__clear { .select2-container .select2-selection--single .select2-selection__clear {
position: relative; position: relative;
} }

View File

@ -190,14 +190,8 @@
/*margin-left: 0.5em;*/ /*margin-left: 0.5em;*/
} }
.info_table > tbody > tr:last-child { .info_table > tbody > tr:last-child > td {
/*border-bottom: 1px solid #e2e2e2;*/ border-bottom: 0;
border-top: 0;
/*border-bottom: 1px solid #c0ccdc;*/
/*
border-left: 1px solid #c0ccdc;
border-right: 1px solid #c0ccdc;
*/
} }
.info_table > tbody > tr > th, .info_table > tbody > tr > th,
.info_table > thead > tr > th, .info_table > thead > tr > th,