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

Issue 2616273002: Native Themes: Add table header colors (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 table header colors This CL adds NativeTheme enum values for table header colors. This should improve the look of dark themes. See images in: https://bugs.chromium.org/p/chromium/issues/detail?id=132847#c38 BUG=132847 R=estade@chromium.org,erg@chromium.org,sky@chromium.org Review-Url: https://codereview.chromium.org/2616273002 Cr-Commit-Position: refs/heads/master@{#445176} Committed: https://chromium.googlesource.com/chromium/src/+/af0cc1e8e62b43c6db0b857c2abf1da4f99d4ef1

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Remove gradient #

Patch Set 4 : Update default colors #

Total comments: 4

Patch Set 5 : Refactor #

Total comments: 7

Patch Set 6 : Address sky@ and estade@'s comments #

Total comments: 6

Patch Set 7 : estade@'s comments #

Total comments: 2

Patch Set 8 : Add gradients back #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -33 lines) Patch
M chrome/browser/ui/libgtkui/native_theme_gtk2.cc View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/libgtkui/native_theme_gtk3.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M ui/native_theme/common_theme.cc View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme_dark_aura.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/background.h View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M ui/views/background.cc View 1 2 3 4 5 6 1 chunk +0 lines, -11 lines 0 comments Download
M ui/views/controls/table/table_header.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/table/table_header.cc View 1 2 3 4 5 5 chunks +17 lines, -16 lines 0 comments Download
M ui/views/examples/scroll_view_example.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 44 (18 generated)
Tom (Use chromium acct)
erg: chrome/browser/ui/libgtkui/native_theme_gtk2.cc chrome/browser/ui/libgtkui/native_theme_gtk3.cc sky: ui/views/controls/table/table_header.cc estade: ui/native_theme/common_theme.cc ui/native_theme/native_theme.h ui/native_theme/native_theme_dark_aura.cc
3 years, 11 months ago (2017-01-07 02:08:19 UTC) #5
Evan Stade
Gradients have fallen out of favor and as we update UIs to Material Design we've ...
3 years, 11 months ago (2017-01-07 20:09:52 UTC) #7
Tom (Use chromium acct)
On 2017/01/07 20:09:52, Evan Stade wrote: > Gradients have fallen out of favor and as ...
3 years, 11 months ago (2017-01-09 20:45:01 UTC) #8
Evan Stade
I could speculate, but we really need Alan to weigh in. Rietveld isn't a typical ...
3 years, 11 months ago (2017-01-09 20:51:56 UTC) #9
Tom (Use chromium acct)
On 2017/01/09 20:51:56, Evan Stade wrote: > I could speculate, but we really need Alan ...
3 years, 11 months ago (2017-01-17 23:48:25 UTC) #11
Elliot Glaysher
lgtm https://codereview.chromium.org/2616273002/diff/80001/ui/views/controls/table/table_header.cc File ui/views/controls/table/table_header.cc (right): https://codereview.chromium.org/2616273002/diff/80001/ui/views/controls/table/table_header.cc#newcode61 ui/views/controls/table/table_header.cc:61: auto* theme = GetNativeTheme(); ui::NativeTheme is short enough ...
3 years, 11 months ago (2017-01-18 00:01:55 UTC) #12
sky
https://codereview.chromium.org/2616273002/diff/80001/ui/views/controls/table/table_header.cc File ui/views/controls/table/table_header.cc (right): https://codereview.chromium.org/2616273002/diff/80001/ui/views/controls/table/table_header.cc#newcode62 ui/views/controls/table/table_header.cc:62: set_background(Background::CreateSolidBackground( Why do you need to set the background ...
3 years, 11 months ago (2017-01-18 16:21:16 UTC) #13
Tom (Use chromium acct)
https://codereview.chromium.org/2616273002/diff/80001/ui/views/controls/table/table_header.cc File ui/views/controls/table/table_header.cc (right): https://codereview.chromium.org/2616273002/diff/80001/ui/views/controls/table/table_header.cc#newcode61 ui/views/controls/table/table_header.cc:61: auto* theme = GetNativeTheme(); On 2017/01/18 00:01:55, Elliot Glaysher ...
3 years, 11 months ago (2017-01-18 23:55:27 UTC) #14
sky
https://codereview.chromium.org/2616273002/diff/100001/ui/views/controls/table/table_header.cc File ui/views/controls/table/table_header.cc (right): https://codereview.chromium.org/2616273002/diff/100001/ui/views/controls/table/table_header.cc#newcode52 ui/views/controls/table/table_header.cc:52: set_background( OnNativeThemeChanged should always be called (first time is ...
3 years, 11 months ago (2017-01-19 00:40:38 UTC) #15
Evan Stade
https://codereview.chromium.org/2616273002/diff/100001/chrome/browser/ui/libgtkui/native_theme_gtk2.cc File chrome/browser/ui/libgtkui/native_theme_gtk2.cc (right): https://codereview.chromium.org/2616273002/diff/100001/chrome/browser/ui/libgtkui/native_theme_gtk2.cc#newcode276 chrome/browser/ui/libgtkui/native_theme_gtk2.cc:276: return ui::NativeTheme::GetInstanceForNativeUi()->GetSystemColor( why fall back to common colors? that ...
3 years, 11 months ago (2017-01-19 00:49:23 UTC) #16
Tom (Use chromium acct)
https://codereview.chromium.org/2616273002/diff/100001/chrome/browser/ui/libgtkui/native_theme_gtk2.cc File chrome/browser/ui/libgtkui/native_theme_gtk2.cc (right): https://codereview.chromium.org/2616273002/diff/100001/chrome/browser/ui/libgtkui/native_theme_gtk2.cc#newcode276 chrome/browser/ui/libgtkui/native_theme_gtk2.cc:276: return ui::NativeTheme::GetInstanceForNativeUi()->GetSystemColor( On 2017/01/19 00:49:22, Evan Stade wrote: > ...
3 years, 11 months ago (2017-01-19 02:03:23 UTC) #17
Evan Stade
https://codereview.chromium.org/2616273002/diff/100001/ui/native_theme/common_theme.cc File ui/native_theme/common_theme.cc (right): https://codereview.chromium.org/2616273002/diff/100001/ui/native_theme/common_theme.cc#newcode271 ui/native_theme/common_theme.cc:271: return base_theme->GetSystemColor(NativeTheme::kColorId_DialogBackground); On 2017/01/19 02:03:23, Tom Anderson wrote: > ...
3 years, 11 months ago (2017-01-19 02:04:29 UTC) #20
Tom (Use chromium acct)
On 2017/01/19 02:04:29, Evan Stade wrote: > https://codereview.chromium.org/2616273002/diff/100001/ui/native_theme/common_theme.cc > File ui/native_theme/common_theme.cc (right): > > https://codereview.chromium.org/2616273002/diff/100001/ui/native_theme/common_theme.cc#newcode271 ...
3 years, 11 months ago (2017-01-20 00:48:47 UTC) #23
Evan Stade
On 2017/01/20 00:48:47, Tom Anderson wrote: > On 2017/01/19 02:04:29, Evan Stade wrote: > > ...
3 years, 11 months ago (2017-01-20 01:16:06 UTC) #24
Evan Stade
> Why am I seeing a light bg and a blue highlight color with Adwaita? ...
3 years, 11 months ago (2017-01-20 01:16:22 UTC) #25
Tom (Use chromium acct)
On 2017/01/20 01:16:22, Evan Stade wrote: > > Why am I seeing a light bg ...
3 years, 11 months ago (2017-01-20 01:26:09 UTC) #26
Evan Stade
On 2017/01/20 01:26:09, Tom Anderson wrote: > On 2017/01/20 01:16:22, Evan Stade wrote: > > ...
3 years, 11 months ago (2017-01-20 01:32:19 UTC) #27
Evan Stade
re: new color ids, ok. Thanks for sending screenshots. https://codereview.chromium.org/2616273002/diff/120001/chrome/browser/ui/libgtkui/native_theme_gtk2.cc File chrome/browser/ui/libgtkui/native_theme_gtk2.cc (right): https://codereview.chromium.org/2616273002/diff/120001/chrome/browser/ui/libgtkui/native_theme_gtk2.cc#newcode275 chrome/browser/ui/libgtkui/native_theme_gtk2.cc:275: ...
3 years, 11 months ago (2017-01-20 01:46:03 UTC) #28
Tom (Use chromium acct)
sky can you also review: ui/views/background.h ui/views/background.cc ui/views/examples/scroll_view_example.cc https://codereview.chromium.org/2616273002/diff/120001/chrome/browser/ui/libgtkui/native_theme_gtk2.cc File chrome/browser/ui/libgtkui/native_theme_gtk2.cc (right): https://codereview.chromium.org/2616273002/diff/120001/chrome/browser/ui/libgtkui/native_theme_gtk2.cc#newcode275 chrome/browser/ui/libgtkui/native_theme_gtk2.cc:275: return ...
3 years, 11 months ago (2017-01-20 19:10:38 UTC) #31
Evan Stade
https://codereview.chromium.org/2616273002/diff/140001/ui/views/examples/scroll_view_example.cc File ui/views/examples/scroll_view_example.cc (right): https://codereview.chromium.org/2616273002/diff/140001/ui/views/examples/scroll_view_example.cc#newcode21 ui/views/examples/scroll_view_example.cc:21: // ScrollView's content, which draws gradient color on background. ...
3 years, 11 months ago (2017-01-20 20:00:19 UTC) #32
Tom (Use chromium acct)
https://codereview.chromium.org/2616273002/diff/140001/ui/views/examples/scroll_view_example.cc File ui/views/examples/scroll_view_example.cc (right): https://codereview.chromium.org/2616273002/diff/140001/ui/views/examples/scroll_view_example.cc#newcode21 ui/views/examples/scroll_view_example.cc:21: // ScrollView's content, which draws gradient color on background. ...
3 years, 11 months ago (2017-01-20 20:18:15 UTC) #35
sky
LGTM
3 years, 11 months ago (2017-01-20 20:34:38 UTC) #36
Evan Stade
On 2017/01/20 20:18:15, Tom Anderson wrote: > https://codereview.chromium.org/2616273002/diff/140001/ui/views/examples/scroll_view_example.cc > File ui/views/examples/scroll_view_example.cc (right): > > https://codereview.chromium.org/2616273002/diff/140001/ui/views/examples/scroll_view_example.cc#newcode21 ...
3 years, 11 months ago (2017-01-20 20:40:51 UTC) #37
Evan Stade
On 2017/01/20 20:40:51, Evan Stade wrote: > On 2017/01/20 20:18:15, Tom Anderson wrote: > > ...
3 years, 11 months ago (2017-01-20 20:41:54 UTC) #38
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/2616273002/160001
3 years, 11 months ago (2017-01-20 20:45:40 UTC) #41
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 21:41:40 UTC) #44
Message was sent while issue was closed.
Committed patchset #8 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/af0cc1e8e62b43c6db0b857c2abf...

Powered by Google App Engine
This is Rietveld 408576698