Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Issue 2623753002: Native themes: Add separator color (Closed)

Created:
3 years, 11 months ago by Tom (Use chromium acct)
Modified:
3 years, 11 months ago
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Native themes: Add separator color Previously, separators always used 0xE9E9E9. This CL allows themes to specify the color. This is currently overridden by the Gtk theme which gives a better appearance on dark themes. The difference can be seen in: https://bugs.chromium.org/p/chromium/issues/detail?id=132847#c39 BUG=132847 R=erg@chromium.org,estade@chromium.org,sky@chromium.org Review-Url: https://codereview.chromium.org/2623753002 Cr-Commit-Position: refs/heads/master@{#442702} Committed: https://chromium.googlesource.com/chromium/src/+/075738e179fbc566ba99aa8f77737a2b49ee8b97

Patch Set 1 #

Total comments: 5

Patch Set 2 : Change function order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -4 lines) Patch
M chrome/browser/ui/libgtkui/native_theme_gtk2.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/libgtkui/native_theme_gtk2.cc View 1 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/libgtkui/native_theme_gtk3.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M ui/native_theme/common_theme.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme_dark_aura.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/separator.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/controls/separator.cc View 1 5 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
Tom (Use chromium acct)
reviewers PTAL erg: chrome/browser/ui/libgtkui/native_theme_gtk2.cc chrome/browser/ui/libgtkui/native_theme_gtk2.h chrome/browser/ui/libgtkui/native_theme_gtk3.cc estade: ui/native_theme/common_theme.cc ui/native_theme/native_theme.h ui/native_theme/native_theme_dark_aura.cc sky: ui/views/controls/separator.cc ui/views/controls/separator.h
3 years, 11 months ago (2017-01-10 02:01:11 UTC) #4
sky
separator LGTM https://codereview.chromium.org/2623753002/diff/1/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/2623753002/diff/1/ui/views/controls/separator.cc#newcode35 ui/views/controls/separator.cc:35: void Separator::SetColorFromNativeTheme() { Style guide says declaration ...
3 years, 11 months ago (2017-01-10 15:56:37 UTC) #5
Evan Stade
lgtm https://codereview.chromium.org/2623753002/diff/1/ui/views/controls/separator.h File ui/views/controls/separator.h (right): https://codereview.chromium.org/2623753002/diff/1/ui/views/controls/separator.h#newcode50 ui/views/controls/separator.h:50: SkColor color_; if you make this base::Optional<SkColor> you ...
3 years, 11 months ago (2017-01-10 16:58:07 UTC) #6
Elliot Glaysher
lgtm
3 years, 11 months ago (2017-01-10 18:13:25 UTC) #7
Tom (Use chromium acct)
https://codereview.chromium.org/2623753002/diff/1/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/2623753002/diff/1/ui/views/controls/separator.cc#newcode35 ui/views/controls/separator.cc:35: void Separator::SetColorFromNativeTheme() { On 2017/01/10 15:56:37, sky wrote: > ...
3 years, 11 months ago (2017-01-10 20:59:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2623753002/20001
3 years, 11 months ago (2017-01-10 20:59:45 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/075738e179fbc566ba99aa8f77737a2b49ee8b97
3 years, 11 months ago (2017-01-10 21:54:39 UTC) #14
Evan Stade
3 years, 11 months ago (2017-01-11 00:32:04 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/2623753002/diff/1/ui/views/controls/separator.h
File ui/views/controls/separator.h (right):

https://codereview.chromium.org/2623753002/diff/1/ui/views/controls/separator...
ui/views/controls/separator.h:50: SkColor color_;
On 2017/01/10 20:59:10, Tom Anderson wrote:
> On 2017/01/10 16:58:07, Evan Stade wrote:
> > if you make this base::Optional<SkColor> you don't need the new member
> 
> But then color() would be more complicated and it would have to be renamed to
> GetColor() :(

good thing it's never actually called then

Powered by Google App Engine
This is Rietveld 408576698