mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
set black theme on agent access rate flot
This commit is contained in:
parent
4adb9827cb
commit
a1fceb2e81
File diff suppressed because one or more lines are too long
@ -563,6 +563,7 @@ function showTooltip(x, y, color, contents) {
|
|||||||
"font-size": "9px",
|
"font-size": "9px",
|
||||||
"border-radius": "5px",
|
"border-radius": "5px",
|
||||||
"background-color": "#fff",
|
"background-color": "#fff",
|
||||||
|
color: "#111",
|
||||||
"font-family": "Verdana, Arial, Helvetica, Tahoma, sans-serif",
|
"font-family": "Verdana, Arial, Helvetica, Tahoma, sans-serif",
|
||||||
opacity: 0.9
|
opacity: 0.9
|
||||||
})
|
})
|
||||||
|
@ -670,6 +670,15 @@ function flot_vcolumn_chart(array $options)
|
|||||||
|
|
||||||
// Add id to options.
|
// Add id to options.
|
||||||
$options['graphId'] = $graphId;
|
$options['graphId'] = $graphId;
|
||||||
|
|
||||||
|
// If pandora_black theme its enabled then change grid colors.
|
||||||
|
if ($config['style'] === 'pandora_black') {
|
||||||
|
$options['grid']['backgroundColor']['colors'][0] = 'transparent';
|
||||||
|
$options['grid']['backgroundColor']['colors'][1] = 'transparent';
|
||||||
|
$options['y']['color'] = 'transparent';
|
||||||
|
$options['x']['color'] = 'transparent';
|
||||||
|
}
|
||||||
|
|
||||||
$settings = base64_encode(json_encode($options));
|
$settings = base64_encode(json_encode($options));
|
||||||
|
|
||||||
// Javascript code.
|
// Javascript code.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user