[Webkit-unassigned] [Bug 30173] New: Make it possible to apply the CSS background color to the native painted widgets instead of to the actual element
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 7 09:36:54 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=30173
Summary: Make it possible to apply the CSS background color to
the native painted widgets instead of to the actual
element
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: All
Status: NEW
Keywords: Qt
Severity: Enhancement
Priority: P2
Component: Layout and Rendering
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: kenneth at webkit.org
Created an attachment (id=40795)
--> (https://bugs.webkit.org/attachment.cgi?id=40795)
Image showing the feature in action (the background of all input elements have
been changed to yellow)
Qt has very good theming support, so it is possible to paint our Qt Buttons,
TextFields etc with the actual CSS background color.
1) We only want to apply the background color if it has been explicitly
specified in the CSS or something similar, similar to the
style->backgroundColor() != backgroundColor check in IsControlStyled.
2) We want to apply the color to the native painted widgets and not always to
the actual element. Why?
In the case of Qt, our TextField widget doesn't fill out the whole element,
there is some padding plus it has rounded corners. For it to look OK, we set
the backgroundColor to transparent in the adjust*Style method.
I have made a patch that implement the feature, but I had to add a method to
RenderStyle that I am not particular happy with.
If anyone has input on a better/more proper way of implementing this, please do
share.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list