From 4d7b13259c22eb81eb4e9904a880cd81b79df49d Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 10 Dec 2019 14:04:36 +1000 Subject: A few style tweaks, mostly to a dark theme. --- conf/config.php | 16 ++++++++++++++-- layout/style.css | 2 +- type/GenericStacked.class.php | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/conf/config.php b/conf/config.php index 0628bfe..492e7eb 100644 --- a/conf/config.php +++ b/conf/config.php @@ -13,7 +13,19 @@ $CONFIG['typesdb'][] = '/usr/share/collectd/types.db'; $CONFIG['rrdtool'] = '/usr/bin/rrdtool'; # rrdtool special command-line options -$CONFIG['rrdtool_opts'] = array(); +$CONFIG['rrdtool_opts'] = array( + '-c', 'BACK#000000', + '-c', 'CANVAS#000000', +# '-c', 'SHADEA#0000FF', +# '-c', 'SHADEB#FFFF00', + '-c', 'FONT#FFFFFF', +# '-c', 'GRID#FF00FF', +# '-c', 'MGRID#880000', + '-c', 'AXIS#FFFFFF', + '-c', 'FRAME#FFFFFF', + '-c', 'ARROW#FFFFFF' +); + # category of hosts to show on main page #$CONFIG['cat']['category1'] = array('host1', 'host2'); @@ -64,7 +76,7 @@ $CONFIG['negative_io'] = false; $CONFIG['percentile'] = false; # create smooth graphs (rrdtool -E) -$CONFIG['graph_smooth'] = false; +$CONFIG['graph_smooth'] = true; # draw min/max spikes in a lighter color in graphs with type default $CONFIG['graph_minmax'] = false; diff --git a/layout/style.css b/layout/style.css index 768c0c6..c756db4 100644 --- a/layout/style.css +++ b/layout/style.css @@ -65,7 +65,7 @@ h2 { a:link, a:visited, a:active { text-decoration: none; - color: #222; + color: #888; } a:hover { diff --git a/type/GenericStacked.class.php b/type/GenericStacked.class.php index 421135c..24055da 100644 --- a/type/GenericStacked.class.php +++ b/type/GenericStacked.class.php @@ -43,7 +43,7 @@ class Type_GenericStacked extends Type_Base { $c = 0; foreach ($sources as $source) { $color = is_array($this->colors) ? (isset($this->colors[$source])?$this->colors[$source]:$this->colors[$c++]) : $this->colors; - $color = $this->get_faded_color($color); +// $color = $this->get_faded_color($color); $rrdgraph[] = sprintf('AREA:area_%s#%s', crc32hex($source), $color); } -- cgit v1.1