Summary: | [Qt] Fix focus ring outline color support | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Csaba Osztrogonác <ossy> | ||||||||
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Minor | CC: | dbates, rhodovan.u-szeged, tonikitoo, yael | ||||||||
Priority: | P4 | Keywords: | Qt, QtTriaged | ||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Attachments: |
|
Description
Csaba Osztrogonác
2010-12-01 08:55:24 PST
Failing tests were added to the skipped list: http://trac.webkit.org/changeset/73027 Yael, you implemented focus ring support previously, could you help me with this bug? It seems there aren't color focus ring, because of Qt::DotLine styled pen without width. I tried the following modification, and it works for me: nPen.setWidth(3); nPen.setStyle(Qt::SolidLine); Is there any reason why we use very thin dotline? (In reply to comment #2) > Yael, you implemented focus ring support previously, > could you help me with this bug? > > It seems there aren't color focus ring, because of Qt::DotLine > styled pen without width. > > I tried the following modification, and it works for me: > nPen.setWidth(3); > nPen.setStyle(Qt::SolidLine); > > Is there any reason why we use very thin dotline? My initial implementation was following what we do for links. I was going to follow up and change the way we do both, but then I saw that Reni is already working on it in https://bugs.webkit.org/show_bug.cgi?id=49953 . If she is not working on it, I'll be happy to do that Created attachment 75446 [details]
Patch.
Take into account the width of the pen when drawing the focus ring for image map.
Change the outline style from dotted to solid, since the dotted line does not make sense anymore.
I will file separate bugs to do the same for links' focus ring and for supporting outline-style.
When the outline is thick, on mac, they use a gradient and not a solid line. I'd like to see if Qt has the ability to do something similar. Created attachment 75536 [details]
Patch.
Take into account the width of the pen when drawing the focus ring for image map.
Change the outline style from dotted to solid, since the dotted line does not make sense anymore.
Set the alpha to 50% on the focus ring, like other ports do.
I did not change the default color of the focus ring, because I could not find a QStyle API for this.
Some of the png images seem to have a problem. Do I need to set svn:eol-style=native on png files ? Created attachment 75684 [details]
Patch.
Update patch after fixing svn:mime-type for the images.
Comment on attachment 75684 [details]
Patch.
r=me
Committed r73361: <http://trac.webkit.org/changeset/73361> |