A while back, I devised a method of pro­vid­ing named col­ors which could be adapted to any given back­ground color, with a rea­son­able guar­an­tee of read­abil­ity. Any­one inter­ested in the details can check out my pre­vi­ous two entries about it:

There’s been some inter­est in this approach from a vari­ety of peo­ple for dif­fer­ent projects. I even went so far as to cre­ate a patch to put this inside GTK+. Unsur­pris­ingly, this patch hasn’t even been looked at due to the main­tainer shortage.

So, I’m try­ing a dif­fer­ent approach. I’ve cleaned up the code, slapped the MIT/X11 license on it, and put it in a sep­a­rate direc­tory to make it easy to cherry-pick. This is kind of libegg-ish right now, though I’d like to make it eas­ier to have an “upstream”. If any­one has any ideas about mak­ing this more friendly for svn:externals (viz. Makefile.am), I’d love to hear them!

Get it now from SVN at http://svn.gnome.org/svn/xchat-gnome/trunk/src/libcontrast/