Chromium Code Reviews
DescriptionMacViews: Style BUTTON_STYLE buttons using the "modern" UI
Currently BUTTON_STYLE LabelButtons on Mac are styled using the
webui-like "ConstrainedWindowButton" style which is used in various
places in the Cocoa UI but nobody likes it. The first phase of
toolkit-views dialogs on Mac will be replacing Cocoa dialogs using this
"constrained" button style, with a more modern style, drawn in Skia.
This CL hooks up that style to views::Label button, with some small
behaviour changes for "default" buttons, and a changing font color.
It handles:
- Default buttons on Mac shouldn't get a bold font.
- Instead, the font changes color so ensure SetIsDefault invalidates
that correctly.
- The minimum button size should be smaller on Mac.
Shares the background gradient calculation with comboboxes, and tweaks
the API slightly to support "highlighted" buttons (i.e. default).
Updates views_examples so that all buttons in the example page can be
toggled "default" (currently only the first button can be, which isn't
STYLE_BUTTON).
Screenshots: http://crbug.com/543686#c5 #c6
BUG=543686
Committed: https://crrev.com/b43f95769ea64a0b000cf524a9d75df1f73e40ed
Cr-Commit-Position: refs/heads/master@{#386322}
Patch Set 1 : "CoFaux" - emulate Cocoa #Patch Set 2 : Update to shiny modern #Patch Set 3 : Consolidate! and compromise #Patch Set 4 : Base off crrev/1863503002 #Patch Set 5 : Testing, tweaks, self review #Patch Set 6 : nits. fix upstream #Patch Set 7 : Fix default buttons on bookmark bubble + test #Patch Set 8 : Fix new tests on !mac #Patch Set 9 : Fix desktop linux weirdness #
Total comments: 10
Patch Set 10 : respond to comments, desktop linux #
Total comments: 19
Patch Set 11 : rebase [at 385994] to pick up r385759 #Patch Set 12 : respond to comments #Messages
Total messages: 36 (27 generated)
|