ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Color coding of priorities in alternate theme is broken for more than 5 priorities (Bug #241)


Added by Jan Schulz-Hofen at 2011-02-28 11:47 am. Updated at 2011-03-02 12:26 am.


Status:Open Start date:2011-02-28
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Issue tracking
Target version:-
Remote issue URL:http://www.redmine.org/issues/2071 Affected version:

Description

In cases where you have more than 5 priorities, the color coding of the alternate theme is broken, or at least not what the user would expect: priorities 6 and up will appear as gray while priorities 3-5 will have different shades of red. This patch fixes this.

On a sidenote: I have submitted this to Redmine as well but would like both communities to benefit from this. Is there a more DRY and suggested way of doing this?


patch_for_2071_against_r4961.diff (5 kB) Jan Schulz-Hofen, 2011-02-28 11:47 am


History

Updated by Eric Davis at 2011-03-02 12:26 am

I've thought about this myself. There are a few problems I see with using the colors this way:

  1. the priority names are hard coded in the CSS
  2. it assumes the priorities are ordered from low (1) to high (4). This isn't intuative to me so in my system they are reveresed (Higher priority is first so it's physically on the top of the list)

The solution I've come up with is to:

  • remove all of priority the coloring from the themes
  • add a field to each priority for the text color
  • add a field to each priority for the background color
  • output those colors in the issues list

This way an Admin can change the colors and priorities themselves without having to worry about breaking the CSS, losing colors, or having to redeploy a theme update. It would also make it so your colors stay the same if you switch themes.

Also available in: Atom PDF