After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 424408 - Automatically compute constrasting colours
Automatically compute constrasting colours
Status: RESOLVED DUPLICATE of bug 344940
Product: vte
Classification: Core
Component: general
0.16.x
Other Linux
: Normal minor
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-03-30 08:42 UTC by Chris Wilson
Modified: 2010-01-13 19:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Demonstration (467.97 KB, image/png)
2007-04-02 17:13 UTC, Chris Wilson
Details

Description Chris Wilson 2007-03-30 08:42:41 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/
Comment 1 Behdad Esfahbod 2007-04-01 17:44:13 UTC
I suggest we wait until this is put in gtk+.  You can help with that bug.
Comment 2 Chris Wilson 2007-04-02 17:13:16 UTC
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.
Comment 3 Behdad Esfahbod 2007-04-02 18:38:26 UTC
humm, nice!  so you sample the background image or what?
Comment 4 Behdad Esfahbod 2010-01-13 19:31:42 UTC
Chris, do you have the test case still?
Comment 5 Behdad Esfahbod 2010-01-13 19:31:53 UTC

*** This bug has been marked as a duplicate of bug 344940 ***