GNOME Bugzilla – Bug 424408
Automatically compute constrasting colours
Last modified: 2010-01-13 19:31:53 UTC
Basic theory is to compare lightness of fore/back colours and push the foreground colour away in order to increase contrast. http://david.navi.cx/blog/?p=94 http://david.navi.cx/blog/?p=99 http://svn.gnome.org/svn/xchat-gnome/trunk/src/libcontrast/
I suggest we wait until this is put in gtk+. You can help with that bug.
Created attachment 85715 [details] Demonstration Messing around with the linked implementation suggests it needs quite a bit more work before it is a generic tool. However, the idea does show promise.
humm, nice! so you sample the background image or what?
Chris, do you have the test case still?
*** This bug has been marked as a duplicate of bug 344940 ***