fixed minnor error black theme 7376

This commit is contained in:
marcos 2021-04-23 09:56:06 +02:00
parent ce72a5c6ee
commit f818b86827
5 changed files with 54 additions and 6 deletions

View File

@ -1072,6 +1072,7 @@ foreach ($modules as $module) {
[
'alt' => __('Enable module'),
'title' => __('Enable module'),
'class' => 'invert_filter_important',
]
).'</a>';
} else {

View File

@ -4313,6 +4313,12 @@ function events_page_details($event, $server='')
$serverstring = '';
}
$table_class = 'table_modal_alternate';
if ($config['style'] === 'pandora_black') {
$table_class = 'black_table_modal_alternate';
}
// Details.
$table_details = new stdClass;
$table_details->width = '100%';
@ -4320,7 +4326,7 @@ function events_page_details($event, $server='')
$table_details->head = [];
$table_details->cellspacing = 0;
$table_details->cellpadding = 0;
$table_details->class = 'table_modal_alternate';
$table_details->class = $table_class;
/*
* Useless switch.

View File

@ -236,6 +236,9 @@ function vbar_graph(
// Grid color axes x.
if (isset($options['x']['color']) === false) {
$options['x']['color'] = '#ffffff';
if ($config['style'] === 'pandora_black') {
$options['x']['color'] = '#222';
}
}
if (isset($options['x']['labelWidth']) === false) {
@ -300,7 +303,7 @@ function vbar_graph(
$options['y']['font']['color'] = '#545454';
if ($config['style'] === 'pandora_black') {
$options['y']['font']['color'] = '#fff';
$options['y']['font']['color'] = '#222';
}
}
@ -317,6 +320,9 @@ function vbar_graph(
// Grid color axes y.
if (isset($options['y']['color']) === false) {
$options['y']['color'] = '#ffffff';
if ($config['style'] === 'pandora_black') {
$options['y']['color'] = '#222';
}
}
if (isset($options['y']['labelWidth']) === false) {
@ -352,6 +358,9 @@ function vbar_graph(
if (isset($options['grid']['color']) === false) {
$options['grid']['color'] = '#ffffff';
if ($config['style'] === 'pandora_black') {
$options['grid']['color'] = '#222';
}
}
if (isset($options['grid']['backgroundColor']) === false) {
@ -361,6 +370,14 @@ function vbar_graph(
'#ffffff',
],
];
if ($config['style'] === 'pandora_black') {
$options['grid']['backgroundColor'] = [
'colors' => [
'#222',
'#222',
],
];
}
}
if (isset($options['grid']['margin']) === false) {

View File

@ -54,7 +54,8 @@ table.databox,
.white_box,
input.sub,
.introjs-tooltip,
button.sub {
button.sub,
.bg_general {
background-color: #222 !important;
color: #fff;
}
@ -242,11 +243,20 @@ div#foot {
/* events.css */
table.table_modal_alternate tr:nth-child(odd) td {
background-color: #222;
background-color: #222 !important;
}
table.table_modal_alternate tr:nth-child(even) td {
background-color: #111;
background-color: #111 !important;
}
/* events.css */
table.black_table_modal_alternate tr:nth-child(odd) td {
background-color: #222 !important;
}
table.black_table_modal_alternate tr:nth-child(even) td {
background-color: #111 !important;
}
/* tables.css */
@ -945,3 +955,11 @@ div.integria_details_description textarea {
.fill_fff {
fill: #fff !important;
}
.module_graph_menu_header,
.module_graph_menu_content {
background-color: #222 !important;
}
.invert_filter_important {
filter: invert(100%) !important;
}

View File

@ -64,8 +64,14 @@ if (file_exists('../../include/languages/'.$user_language.'.mo')) {
$l10n->load_tables();
}
global $config;
echo '<link rel="stylesheet" href="../../include/styles/pandora.css" type="text/css"/>';
if ($config['style'] === 'pandora_black') {
echo '<link rel="stylesheet" href="../../include/styles/pandora_black.css" type="text/css"/>';
}
$id = get_parameter('id');
$id_agent = db_get_value(
'id_agente',
@ -129,7 +135,7 @@ ui_print_message_dialog(
};
</script>
</head>
<body class='bg_white'>
<body class='bg_general'>
<?php
// Module id.
$id = (int) get_parameter('id', 0);