From 902da3a219621a6d7ed587ab3dcf360cd5dabc04 Mon Sep 17 00:00:00 2001 From: cFire Date: Sat, 2 Jul 2016 00:14:18 +0200 Subject: [PATCH] Update common.inc.php to allow custom font color Allowing customization of the font color is useful for me as I pull graphs into a dashboard which happens to have a black background. Perhaps this feature can be useful to others. --- html/includes/graphs/common.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/includes/graphs/common.inc.php b/html/includes/graphs/common.inc.php index ba77fb3f6f..6dc2ff0106 100644 --- a/html/includes/graphs/common.inc.php +++ b/html/includes/graphs/common.inc.php @@ -90,6 +90,10 @@ if ($_GET['bg']) { $rrd_options .= ' -c CANVAS#'.mres($_GET['bg']).' '; } +if ($_GET['font']) { + $rrd_options .= ' -c FONT#'.mres($_GET['font']).' '; +} + // $rrd_options .= " -c BACK#FFFFFF"; if ($height < '99') { $rrd_options .= ' --only-graph';