From 68ff872e372323bad9830384da2340c78c6f0503 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 21 Jul 2004 15:05:34 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20d=E9but=20de=20gestion=20de=20th=E8me?= =?UTF-8?q?=20de=20couleur=20pour=20les=20graphs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/bargraph.class.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/htdocs/bargraph.class.php b/htdocs/bargraph.class.php index c41e73063ec..65dd8c150e0 100644 --- a/htdocs/bargraph.class.php +++ b/htdocs/bargraph.class.php @@ -1,5 +1,5 @@ +/* Copyright (c) 2003-2004 Rodolphe Quiedeville * Copyright (c) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify @@ -48,13 +48,21 @@ class BarGraph extends Graph $this->data = $data; include_once(DOL_DOCUMENT_ROOT."/includes/phplot/phplot.php"); - + $this->bgcolor = array(235,235,224); //$this->bgcolor = array(235,235,200); $this->bordercolor = array(235,235,224); $this->datacolor = array(array(204,204,179), array(187,187,136), array(235,235,224)); + + + $color_file = DOL_DOCUMENT_ROOT."/theme/".$conf->theme."/graph-color.php"; + if (is_readable($color_file)) + { + include($color_file); + $this->bgcolor = $theme_bgcolor; + } $this->precision_y = 0;