Fixed minor visual bugs in black theme- #4194

This commit is contained in:
Tatiana Llorente 2019-07-09 15:03:38 +02:00
parent 0cccafc7be
commit eaf29b798a
5 changed files with 92 additions and 6 deletions

View File

@ -270,6 +270,12 @@ function mainModuleGroups()
$table->style[0] = 'color: #ffffff; background-color: #373737; font-weight: bolder; min-width: 230px;'; $table->style[0] = 'color: #ffffff; background-color: #373737; font-weight: bolder; min-width: 230px;';
$table->width = '100%'; $table->width = '100%';
if ($config['style'] === 'pandora_black') {
$background_color = '#333';
} else {
$background_color = '#fff';
}
$head[0] = __('Groups'); $head[0] = __('Groups');
$headstyle[0] = 'width: 20%; font-weight: bolder;'; $headstyle[0] = 'width: 20%; font-weight: bolder;';
foreach ($array_module_group as $key => $value) { foreach ($array_module_group as $key => $value) {
@ -314,7 +320,7 @@ function mainModuleGroups()
$data[$i][$j] .= $array_data[$key][$k]['total_count']; $data[$i][$j] .= $array_data[$key][$k]['total_count'];
$data[$i][$j] .= '</a></div>'; $data[$i][$j] .= '</a></div>';
} else { } else {
$data[$i][$j] = "<div style='background:white;".$cell_style."'>"; $data[$i][$j] = "<div style='background:".$background_color.';'.$cell_style."'>";
$data[$i][$j] .= 0; $data[$i][$j] .= 0;
$data[$i][$j] .= '</div>'; $data[$i][$j] .= '</div>';
} }
@ -323,7 +329,7 @@ function mainModuleGroups()
} }
} else { } else {
foreach ($value['gm'] as $k => $v) { foreach ($value['gm'] as $k => $v) {
$data[$i][$j] = "<div style='background:white; min-width: 60px;max-width:5%;overflow:hidden; margin-left: auto; margin-right: auto; text-align: center; padding: 5px;padding-bottom:10px;font-size: 18px;line-height:25px;'>"; $data[$i][$j] = "<div style='background:".$background_color."; min-width: 60px;max-width:5%;overflow:hidden; margin-left: auto; margin-right: auto; text-align: center; padding: 5px;padding-bottom:10px;font-size: 18px;line-height:25px;'>";
$data[$i][$j] .= 0; $data[$i][$j] .= 0;
$data[$i][$j] .= '</div>'; $data[$i][$j] .= '</div>';
$j++; $j++;

View File

@ -78,6 +78,13 @@ function push_table_advanced($row, $id=false)
function add_component_selection($id_network_component_type) function add_component_selection($id_network_component_type)
{ {
global $table_simple; global $table_simple;
global $config;
if ($config['style'] === 'pandora_black') {
$background_row = 'background-color: #444';
} else {
$background_row = 'background-color: #cfcfcf';
}
$data = []; $data = [];
$data[0] = __('Using module component').' '; $data[0] = __('Using module component').' ';
@ -116,7 +123,7 @@ function add_component_selection($id_network_component_type)
$data[1] .= '</span>'; $data[1] .= '</span>';
$table_simple->colspan['module_component'][1] = 3; $table_simple->colspan['module_component'][1] = 3;
$table_simple->rowstyle['module_component'] = 'background-color: #cfcfcf'; $table_simple->rowstyle['module_component'] = $background_row;
prepend_table_simple($data, 'module_component'); prepend_table_simple($data, 'module_component');
} }

View File

@ -107,9 +107,15 @@ function html_do_report_info($report)
{ {
global $config; global $config;
if ($config['style'] === 'pandora_black') {
$background_color = '#222';
} else {
$background_color = '#f5f5f5';
}
$date_today = date($config['date_format']); $date_today = date($config['date_format']);
$html = '<div style="border: 1px dashed #999; padding: 10px 15px; background: #f5f5f5;margin-top:20px;margin-bottom:20px;"><table> $html = '<div style="border: 1px dashed #999; padding: 10px 15px; background: '.$background_color.';margin-top:20px;margin-bottom:20px;"><table>
<tr> <tr>
<td><b>'.__('Generated').': </b></td><td>'.$date_today.'</td> <td><b>'.__('Generated').': </b></td><td>'.$date_today.'</td>
</tr> </tr>

View File

@ -55,6 +55,11 @@ table.databox,
color: #fff; color: #fff;
} }
input[readonly] {
background-color: #444 !important;
color: #a2a2a2 !important;
}
.box-shadow { .box-shadow {
box-shadow: none; box-shadow: none;
} }
@ -88,6 +93,37 @@ textarea:disabled {
filter: brightness(2.5) contrast(3.5); filter: brightness(2.5) contrast(3.5);
} }
table.widget_list tr.datos,
table.widget_list tr.datos2,
table.widget_list td.datos,
table.widget_list td.datos2 {
background-color: inherit;
}
/* messages */
.container {
background-color: #222;
}
.p-slider {
background-color: #888;
}
ol.steps li.current {
border-left: 5px solid #82b92e;
background-color: #545454;
}
ol.steps li {
background-color: #999;
}
ol.steps li.visited,
ol.steps li.visited span,
ol.steps li.visited a {
color: #eaeaea;
}
/* White text */ /* White text */
a, a,
#menu_tab_left li a, #menu_tab_left li a,
@ -109,7 +145,9 @@ form.discovery label,
.input_label, .input_label,
.pagination, .pagination,
tr.group_view_data, tr.group_view_data,
.group_view_data { .group_view_data,
ol.steps li span,
ol.steps li a {
color: #fff; color: #fff;
} }
@ -198,6 +236,13 @@ table.table_modal_alternate tr:nth-child(even) td {
color: #fff; color: #fff;
} }
.info_table .datos3,
.datos3,
.info_table .datos4,
.datos4 {
background-color: #444;
}
.action_buttons a[href] img, .action_buttons a[href] img,
.action_buttons input[type="image"], .action_buttons input[type="image"],
.action_button_img { .action_button_img {
@ -318,3 +363,25 @@ ul.ui-tabs-nav.ui-corner-all.ui-helper-reset.ui-helper-clearfix.ui-widget-header
img { img {
filter: brightness(2); filter: brightness(2);
} }
/* notifications */
#notification-wrapper::before {
border-bottom-color: #111;
}
#notification-wrapper {
background: #111;
}
.notification-item {
background: #222;
}
.notification-subtitle {
color: #fff;
}
/* update_manager.css */
div#box_online * {
color: #000;
}

View File

@ -22,7 +22,7 @@ $searchReports = check_acl($config['id_user'], 0, 'RR');
$searchUsers = check_acl($config['id_user'], 0, 'UM'); $searchUsers = check_acl($config['id_user'], 0, 'UM');
$searchHelps = true; $searchHelps = true;
echo '<br><div style="margin:auto; width:90%; padding: 10px; background: #fff">'; echo '<br><div style="margin:auto; width:90%; padding: 10px;">';
$anyfound = false; $anyfound = false;