text selection consistency
David Faure
faure at kde.org
Sat Sep 27 00:39:54 BST 2003
On Saturday 27 September 2003 01:34, Max Howell wrote:
> > This has already bitten me. I'm working hard on a solution that inverts the
> > colors if the contrast is too small. I think it's better to occasionally
> > divert from the global colors than having unrecognizeable selections.
>
> If you do make a solution to detect poor contrast and invert as appropriate
> I'd be interested in writing a bit of code to detect when pages have poor
> font/background colour choices that give low contrast. Konqueror could react
> by using user-css or just upping the contrast. It could be an accessability
> add-on and I'd personally use it. I just found a site with bright blue links
> on a navy background, some people's design decisions astound me!
A generic method that detects if two colors are too close to be distinguishable
would be useful in many contexts - e.g. when determining the selection
color in KWord (it defaults to the KDE selection color, but if the frame's
background color has that color too, then it'll be hard to see).
--
David FAURE, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kfm-devel
mailing list