text selection consistency
Leo Savernik
l.savernik at aon.at
Thu Sep 25 22:25:57 BST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Donnerstag, 25. September 2003 21:25 schrieb Dirk Mueller:
[...]
>
> What do you do for those webpages where the regular text color and regular
> background color looks like those KDE global settings?
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.
Btw, to give the user more control, I'd also like to port the ::selection
pseudo element from safari. This allows for custom selection colors in style
sheets.
>
> > Another thing I noticed is that selected lines have small gaps between
> > the lines, even with default styles. No other browser I tried exhibits
> > the same behaviour, not even QTextEditor, therefore it can't be a Qt
> > issue. Would anybody object if I closed the gaps?
>
> This is a small bug, which was so far not easily fixable as we had no
> inline boxes, aka we didn't know the total height of the line.
We still don't know, but this isn't necessary to match NN, IE, Opera. I solved
it by simply adding a half-leading to the top and bottom of the selection
rectangle.
mfg
Leo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE/c11lj5jssenUYTsRAnw6AJ9RGXJd85vkkqTpL/0XkBPSP9oftgCeJZHG
oiTvhWCzsef1G0VUsxDYhic=
=Ga8l
-----END PGP SIGNATURE-----
More information about the kfm-devel
mailing list