Menu

Commit [r4553]  Maximize  Restore  History

Blame branch: color scale is now fully configurable

- by default use linear interpolation method suggested by mgood
- make it possible to configure `oldest_color` and `newest_color` (r,g,b) triples in the `[browser]` section of trac.ini
- in addition, it is also possible to configure an `intermediate_point` (between 0 and 1 exclusive) which can be use to position an `intermediate_color` on the color scale. This can be used to make the very newest changes to stand out.

Here's an example for using the default color scale in the [0,0.8] range of the time span, and a gradient to the "Edgewall red" for the last 20% of the newest changes:

{{{
[browser]
oldest_color = (136,136,255)
intermediate_color = (255,136,136)
newest_color = (187,0,0)
intermediate_point = 0.8
}}}

cboos 2007-01-12

changed /sandbox/blame/trac/versioncontrol/web_ui/browser.py
/sandbox/blame/trac/versioncontrol/web_ui/browser.py Diff Switch to side-by-side view
Loading...
Auth0 Logo