Here is a simple algorithm that choses light shades for background - useful for skins having white/light background with black text - may be tweaked for skins for black/dark backgrounds as well (by not adding constant - but I haven't tested it). This one uses 30%/59%/11% ratio for R/G/B dynamic range.
... after calculating hash h: r = 233 + (h % 22); h /= 22; g = 244 + (h % 11); h /= 11; b = 195 + (h % 60); h /= 60; Of course there will be collisions but I prefer light shades for backgrounds so shared it here. - Altu ----- Original Message ----- From: Richard Hipp Sent: 08/26/11 11:00 PM To: fossil-users Subject: [fossil-users] Testing for a release It's been a long time since there has been an official release of Fossil. Probably I should do another soon.... To that end, I'm asking folks to please test the trunk. I use the trunk routinely, so it should be stable. But the more eyes the better. I say I'm using the trunk - actually I'm currently using Dmitry Chestnykh's "symlinks" branch. And the build of fossil that runs the http://www.fossil-scm.org and http://www.sqlite.org websites is also using that branch. I'm thinking we should probably wait until the following release to merge that branch into trunk. But "symlinks" and "trunk" are pretty close to one another, so active use of "symlinks" is nearly as good as active use of "trunk". It would be good to reach closure on the automatic background-color picking algorithm before the next release. There is a new page where you can see the default background-color for every branch in a repository: http://www.fossil-scm.org/fossil/brlist?colortest http://www.sqlite.org/src/brlist?colortest If anybody wants to tweak this algorithm, now would be a good time. I'll be reluctant to change it after the next release. Thanks for help and attention. -- D. Richard Hipp [email protected]
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

