Adjusted chart code to use colors as defined in each theme's layout.inc.php

This commit is contained in:
Tyron Madlener
2011-04-30 13:36:55 +02:00
parent 5569316389
commit 7645bc93d1
6 changed files with 129 additions and 48 deletions

View File

@@ -110,4 +110,29 @@ $GLOBALS['cfg']['SQP']['fmtColor'] = array(
'quote_single' => '',
'quote_backtick' => ''
);
/**
* Chart colors
*/
$GLOBALS['cfg']['chartColor'] = array(
'gradientIntensity' => 0,
// The style of the chart title.
'titleColor' => '#000000',
'titleBgColor' => $GLOBALS['cfg']['ThBackground'],
// Chart border (0 for no border)
'border' => '#CCCCCC',
// Chart background color.
'bgColor' => $GLOBALS['cfg']['BgTwo'],
// when graph area gradient is used, this is the color of the graph
// area border
'graphAreaColor' => '#D5D9DD',
// the background color of the inner graph area
'graphAreaGradientColor'=> $GLOBALS['cfg']['BgOne'],
// the color of the grid lines in the graph area
'gridColor' => '#E6E6E6',
// the color of the scale and the labels
'scaleColor' => '#D5D9DD',
);
?>

View File

@@ -112,4 +112,30 @@ $GLOBALS['cfg']['SQP']['fmtColor'] = array(
'quote_single' => '',
'quote_backtick' => ''
);
/**
* Chart colors
*/
$GLOBALS['cfg']['chartColor'] = array(
'gradientIntensity' => 50,
// The style of the chart title.
'titleColor' => '#000000',
'titleBgColor' => '#E5E5E5',
// Chart border (0 for no border)
'border' => '#CCCCCC',
// Chart background color.
'bgColor' => '#FBFBFB',
// when graph area gradient is used, this is the color of the graph
// area border
'graphAreaColor' => '#D5D9DD',
// the background color of the graph area
'graphAreaGradientColor'=> $GLOBALS['cfg']['BgTwo'],
// the color of the grid lines in the graph area
'gridColor' => '#E6E6E6',
// the color of the scale and the labels
'scaleColor' => '#D5D9DD',
);
?>