Merge branch 'ent-13507-Black-Theme-Netflow-Explorer-iconos-de-filtro-y-vista-con-fondo-negro-se-ven-mal' into 'develop'
Ent 13507 black theme netflow explorer iconos de filtro y vista con fondo negro se ven mal See merge request artica/pandorafms!7303
This commit is contained in:
commit
e06b0928ac
|
@ -1570,8 +1570,12 @@ function netflow_draw_item(
|
|||
);
|
||||
|
||||
// Theme.
|
||||
$theme = $config['style'];
|
||||
$text_color = ($theme !== 'pandora_black') ? '#333' : '#fff';
|
||||
$user_info = get_user_info($config['id_user']);
|
||||
if (isset($user_info['id_skin']) === true && (int) $user_info['id_skin'] === 2) {
|
||||
$text_color = '#ffffff';
|
||||
} else {
|
||||
$text_color = '#333333';
|
||||
}
|
||||
|
||||
$graph_output = pie_graph(
|
||||
$pie_data,
|
||||
|
|
|
@ -483,6 +483,9 @@ $table->data = [];
|
|||
$chart_data = [];
|
||||
$labels = [];
|
||||
$hide_filter = !empty($main_value) && ($action === 'udp' || $action === 'tcp');
|
||||
$row_icon_color_filters = ($config['style'] === 'pandora') ? '' : 'filter: invert(100%) !important;';
|
||||
$row_icon_color_eye = ($config['style'] === 'pandora') ? '' : 'filter: invert(100%) !important; background-color: transparent !important;';
|
||||
|
||||
foreach ($data as $item) {
|
||||
$row = [];
|
||||
$row['main'] = '<div class="flex_center">';
|
||||
|
@ -491,9 +494,17 @@ foreach ($data as $item) {
|
|||
$row['main'] .= html_print_link_with_params(
|
||||
'images/filters@svg.svg',
|
||||
array_merge($hidden_main_link, ['main_value' => $item['host']]),
|
||||
'image'
|
||||
'image',
|
||||
$row_icon_color_filters,
|
||||
);
|
||||
$row['main'] .= html_print_input_image(
|
||||
'whois',
|
||||
'images/eye.png',
|
||||
'whois',
|
||||
$row_icon_color_eye,
|
||||
true,
|
||||
['onclick' => 'whois(\''.$item['host'].'\')'],
|
||||
);
|
||||
$row['main'] .= html_print_input_image('whois', 'images/eye.png', 'whois', '', true, ['onclick' => 'whois(\''.$item['host'].'\')']);
|
||||
}
|
||||
|
||||
$row['main'] .= '</div>';
|
||||
|
|
|
@ -128,6 +128,13 @@ class JavaScript extends Renderer
|
|||
}
|
||||
}
|
||||
};';
|
||||
|
||||
if ($this->chart->options()->getTheme() !== null) {
|
||||
if ((int) $this->chart->options()->getTheme() === 2) {
|
||||
$script[] = 'Chart.defaults.color = "#ffffff";';
|
||||
}
|
||||
}
|
||||
|
||||
$script[] = 'Chart.register(chart_watermark_'.$this->chart->getId().');';
|
||||
}
|
||||
|
||||
|
@ -163,6 +170,10 @@ class JavaScript extends Renderer
|
|||
if (chart.config.options.title !== undefined ) {
|
||||
chart.config.options.title.fontColor = "#ffffff";
|
||||
}
|
||||
|
||||
if (chart.config.options.plugins.legend.labels.font !== undefined ) {
|
||||
chart.config.options.plugins.legend.labels.font.color = "#ffffff";
|
||||
}
|
||||
';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue