You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2012-06-21 18:01:47

entr04y
Member
Registered: 2011-05-13
Posts: 18

Project Plugin Gantt Colors

I am using glpi 0.83 and project 1.3.0.  I've set the project status colors to custom colors, but the gantt chart shows different colors (dark blues) as the background for the project names instead of the custom colors based on status.  The dark blue colors make it very difficult to read.

Is there somewhere else that colors need to be changed, or is the image generation not picking up the colors from the database?  I can't seem to find anywhere in the database or in the source files where the dark blue colors for in progress (dark) and in planning (darker) are defined.

Is this a bug, or can I fix it by defining the colors in the appropriate place... and if I can fix it, where?

Thanks!

Offline

#2 2012-06-21 18:08:01

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: Project Plugin Gantt Colors

go on Setup / dropdowns / project / task or project states and add an Associated color (#CCCCCC)


Xavier Caillaud
Blog GLPI Infotel

Offline

#3 2012-06-21 18:10:00

entr04y
Member
Registered: 2011-05-13
Posts: 18

Re: Project Plugin Gantt Colors

I've set the project status colors to custom colors

I've done that... the colors in the listings show up correctly.  The colors in the gantt chart are still blue.

Here is the table from the database:

mysql> select * from glpi_plugin_projet_projetstates;
+----+-------------+---------+------------+------+
| id | name        | comment | color      | type |
+----+-------------+---------+------------+------+
|  2 | In Planning |         | lightblue  |    0 |
| 12 | Completed   |         | cyan       |    1 |
| 22 | In Progress |         | lightgreen |    0 |
| 32 | On Hold     |         | pink       |    0 |
| 42 | Pending     |         | red        |    0 |
+----+-------------+---------+------------+------+
5 rows in set (0.00 sec)

mysql> select * from glpi_plugin_projet_taskstates;
+----+-------------+---------+------------+----------------+--------------+
| id | name        | comment | color      | for_dependency | for_planning |
+----+-------------+---------+------------+----------------+--------------+
|  2 | Pending     |         | red        |              0 |            0 |
| 12 | In Progress |         | lightgreen |              0 |            0 |
| 22 | In Planning |         | lightblue  |              0 |            0 |
| 32 | On Hold     |         | Pink       |              0 |            0 |
| 42 | Completed   |         | cyan       |              0 |            1 |
+----+-------------+---------+------------+----------------+--------------+
5 rows in set (0.00 sec)

Last edited by entr04y (2012-06-21 18:14:18)

Offline

#4 2012-06-21 18:51:26

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: Project Plugin Gantt Colors

and if you use a hexadecimal code like #CCCCCC ?


Xavier Caillaud
Blog GLPI Infotel

Offline

#5 2012-06-21 20:03:25

entr04y
Member
Registered: 2011-05-13
Posts: 18

Re: Project Plugin Gantt Colors

Using the hex code was the key... thanks for your help!

Offline

Board footer

Powered by FluxBB