WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
66750
Better styling for input type=color on Chromium Win
https://bugs.webkit.org/show_bug.cgi?id=66750
Summary
Better styling for input type=color on Chromium Win
Keishi Hattori
Reported
2011-08-23 00:43:31 PDT
Better styling for input type=color on Chromium Win
Attachments
patch
(1.50 KB, patch)
2011-08-23 01:09 PDT
,
Keishi Hattori
no flags
Details
Formatted Diff
Diff
Screenshot after patch
(45.35 KB, image/png)
2011-08-23 01:11 PDT
,
Keishi Hattori
no flags
Details
Screenshot before patch
(47.88 KB, image/png)
2011-08-23 01:27 PDT
,
Keishi Hattori
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Keishi Hattori
Comment 1
2011-08-23 01:09:56 PDT
Created
attachment 104799
[details]
patch
Keishi Hattori
Comment 2
2011-08-23 01:11:07 PDT
Created
attachment 104800
[details]
Screenshot after patch
Kent Tamura
Comment 3
2011-08-23 01:24:43 PDT
Comment on
attachment 104799
[details]
patch I can't understand how this will improve the appearance. Could you show the current appearance please? Why square-button was not good on Windows? Why do you changed the button size? Why do you change the swatch border?
Keishi Hattori
Comment 4
2011-08-23 01:27:38 PDT
Created
attachment 104804
[details]
Screenshot before patch
Keishi Hattori
Comment 5
2011-08-23 01:32:03 PDT
(In reply to
comment #3
)
> (From update of
attachment 104799
[details]
(apply) [details]) > I can't understand how this will improve the appearance. Could you show the current appearance please? > > Why square-button was not good on Windows?
square-button seems to draw a focus ring.
> Why do you changed the button size?
The button looked a bit wide. I couldn't find a color button type UI for windows so I tried to match the dimensions of the button in this screenshot.
http://eulogica.com/var/ezwebin_site/storage/images/media/images/windows-7-appearance-settings/33079-1-eng-GB/Windows-7-Appearance-Settings.jpg
> Why do you change the swatch border?
Same as above.
Keishi Hattori
Comment 6
2011-08-23 01:34:29 PDT
>
http://eulogica.com/var/ezwebin_site/storage/images/media/images/windows-7-appearance-settings/33079-1-eng-GB/Windows-7-Appearance-Settings.jpg
The scale is wrong in this image but I copied it from this dialog.
Kent Tamura
Comment 7
2011-08-23 02:03:45 PDT
(In reply to
comment #5
)
> square-button seems to draw a focus ring.
The buttons in "Screenshot before patch" look strange. Why multiple buttons have focus appearance?
> > Why do you changed the button size? > The button looked a bit wide. I couldn't find a color button type UI for windows so I tried to match the dimensions of the button in this screenshot.
If Windows has no standard widget for this, I'd like to apply the same dimensions with Mac. Platform differences make web developers unhappy.
Keishi Hattori
Comment 8
2011-08-23 05:44:40 PDT
(In reply to
comment #7
)
> (In reply to
comment #5
) > > square-button seems to draw a focus ring. > > The buttons in "Screenshot before patch" look strange. Why multiple buttons have focus appearance?
This seems to be caused by the problem I talked about last Friday. I wasn't able to do anything then because I got confused with the different behaviors between my debug build, my release build, and Google's release builds. My debug builds were crashing. My release builds were drawing buttons with focuses. Google release builds (Chrome 14) were working as expected. My theory is... RenderThemeChromiumWin::getThemeData doesn't define a case for SquareButtonPart.
http://trac.webkit.org/browser/trunk/Source/WebCore/rendering/RenderThemeChromiumWin.cpp#L626
So when WebThemeEngineImpl::paintButton is called, "part" is 0 and crashes on line 370.
http://google.com/codesearch#OAMlx_jo-ck/src/webkit/glue/webthemeengine_impl_win.cc&l=370
But in the release build, it doesn't crash on NOTREACHED() and instead falls back to gfx::NativeTheme::kPushButton.
http://google.com/codesearch#OAMlx_jo-ck/src/webkit/glue/webthemeengine_impl_win.cc&l=358
Maybe Google release builds are doing something to revert new changes? Then that would explain everything.
> > > Why do you changed the button size? > > The button looked a bit wide. I couldn't find a color button type UI for windows so I tried to match the dimensions of the button in this screenshot. > > If Windows has no standard widget for this, I'd like to apply the same dimensions with Mac. Platform differences make web developers unhappy.
I fiddled with the parameters and I think it could work with the same dimensions. The padding needs to be 1px thicker because of the rounded corner.
Eric Seidel (no email)
Comment 9
2012-02-16 14:33:24 PST
tkent is your man here. This patch is nearly 5 months old. :(
Stephen Chenney
Comment 10
2013-04-11 15:07:40 PDT
https://code.google.com/p/chromium/issues/detail?id=230611
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug