Bug 58248 - [Qt] Better padding for inputs and comboxes in mobile theme
Summary: [Qt] Better padding for inputs and comboxes in mobile theme
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Diego Gonzalez
Keywords: Qt, QtTriaged
Depends on:
Reported: 2011-04-11 11:19 PDT by Diego Gonzalez
Modified: 2011-06-01 06:57 PDT (History)
2 users (show)

See Also:

Screenshot (47.33 KB, image/png)
2011-04-11 11:20 PDT, Diego Gonzalez
no flags Details
Screenshot after patch (28.34 KB, image/png)
2011-04-11 12:05 PDT, Diego Gonzalez
no flags Details
Patch (3.91 KB, patch)
2011-04-11 12:06 PDT, Diego Gonzalez
kenneth: review-
Details | Formatted Diff | Diff
Patch 2 (3.79 KB, patch)
2011-04-11 15:30 PDT, Diego Gonzalez
kenneth: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Gonzalez 2011-04-11 11:19:43 PDT
Adjust padding for input and combos
Comment 1 Diego Gonzalez 2011-04-11 11:20:43 PDT
Created attachment 89036 [details]
Comment 2 Diego Gonzalez 2011-04-11 12:05:16 PDT
Created attachment 89044 [details]
Screenshot after patch
Comment 3 Diego Gonzalez 2011-04-11 12:06:47 PDT
Created attachment 89045 [details]
Comment 4 Kenneth Rohde Christiansen 2011-04-11 13:23:55 PDT
Comment on attachment 89045 [details]

View in context: https://bugs.webkit.org/attachment.cgi?id=89045&action=review

> Source/WebCore/platform/qt/RenderThemeQt.cpp:109
> +static const float defaultButtonPaddingLeft = 18;

I am not sure the default is really needed here. We could also put them in an anomymous namespace so that they are only visible here.

Info here: http://msdn.microsoft.com/en-us/library/yct4x9k5(v=vs.80).aspx : You can declare an unnamed namespace as a superior alternative to the use of global static variable declarations.

> Source/WebCore/platform/qt/RenderThemeQt.cpp:113
> +static const float defaultComboBoxPadding = 9;

As it is the selector element, combobox might not be the best name
Comment 5 Diego Gonzalez 2011-04-11 15:30:16 PDT
Created attachment 89103 [details]
Patch 2
Comment 6 Kenneth Rohde Christiansen 2011-04-12 01:06:21 PDT
Comment on attachment 89103 [details]
Patch 2

View in context: https://bugs.webkit.org/attachment.cgi?id=89103&action=review

I assume this doesnt break current non mobile theme theming

> Source/WebCore/platform/qt/RenderThemeQt.cpp:108
> +// Values to mobile theme padding

s/to/for - but useless comment :-) just remove
Comment 7 Diego Gonzalez 2011-04-12 14:32:34 PDT
Committed at r83615