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

Issue 2044223006: Make toolbar color opaque in browser theme (Closed)

Created:
4 years, 6 months ago by sunxd
Modified:
4 years, 5 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make toolbar color opaque in browser theme In the bug, the ui assumes using lcd_text by default, but the theme has transparent toolbar_color, rendering subpixel makes the text seem weird. This CL forces the color to be opaque (alpha value = 0xff). It worked before because the can_use_lcd_text property of status bubble is set before we compute layer draw properties, and the property is disabled all the time. But now we compute layer draw properties on demand, the can_use_lcd_text property becomes true as the whole layer tree is set to be able to use lcd text. BUG=618278 Committed: https://crrev.com/32c538f0e6cd40ebd53f336f1f3fae7eb404070b Cr-Commit-Position: refs/heads/master@{#403593}

Patch Set 1 #

Patch Set 2 : Disable lcd text when toolbar color is not opaque #

Patch Set 3 : Make status bubble background color opaque #

Total comments: 1

Patch Set 4 : Make toolbar color opaque #

Patch Set 5 : Make toolbar_color opaque #

Total comments: 2

Patch Set 6 : Toolbar color alpha value is not expected to be supported in unit test. #

Total comments: 3

Patch Set 7 : Resolve nit comments #

Patch Set 8 : Fix compile failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -7 lines) Patch
M chrome/browser/themes/browser_theme_pack.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack_unittest.cc View 1 2 3 4 5 6 1 chunk +9 lines, -7 lines 0 comments Download

Messages

Total messages: 44 (16 generated)
sunxd
4 years, 6 months ago (2016-06-09 17:51:58 UTC) #2
sunxd
4 years, 6 months ago (2016-06-09 17:53:11 UTC) #4
sunxd
4 years, 6 months ago (2016-06-09 19:44:24 UTC) #5
sunxd
Add sky@ as the owner. Hi sky@, do you have any suggestions on how to ...
4 years, 6 months ago (2016-06-09 20:07:53 UTC) #7
Evan Stade
On 2016/06/09 20:07:53, sunxd wrote: > Add sky@ as the owner. Hi sky@, do you ...
4 years, 6 months ago (2016-06-10 17:42:55 UTC) #9
sunxd
4 years, 6 months ago (2016-06-13 08:55:35 UTC) #12
msw
lgtm
4 years, 6 months ago (2016-06-13 18:11:19 UTC) #13
Peter Kasting
The toolbar itself doesn't seem to be transparent; why are we respecting the transparency request ...
4 years, 6 months ago (2016-06-13 21:08:51 UTC) #14
sunxd
On 2016/06/13 21:08:51, Peter Kasting wrote: > The toolbar itself doesn't seem to be transparent; ...
4 years, 6 months ago (2016-06-20 14:51:23 UTC) #15
Peter Kasting
On 2016/06/20 14:51:23, sunxd wrote: > On 2016/06/13 21:08:51, Peter Kasting wrote: > > The ...
4 years, 6 months ago (2016-06-20 20:11:41 UTC) #16
sunxd
On 2016/06/20 20:11:41, Peter Kasting wrote: > On 2016/06/20 14:51:23, sunxd wrote: > > On ...
4 years, 6 months ago (2016-06-21 13:49:54 UTC) #17
Peter Kasting
On 2016/06/21 13:49:54, sunxd wrote: > On 2016/06/20 20:11:41, Peter Kasting wrote: > > On ...
4 years, 6 months ago (2016-06-21 21:34:10 UTC) #18
sunxd
On 2016/06/21 21:34:10, Peter Kasting wrote: > On 2016/06/21 13:49:54, sunxd wrote: > > On ...
4 years, 6 months ago (2016-06-21 23:52:42 UTC) #20
sunxd
4 years, 6 months ago (2016-06-21 23:52:49 UTC) #21
Peter Kasting
https://codereview.chromium.org/2044223006/diff/40001/chrome/browser/ui/views/status_bubble_views.cc File chrome/browser/ui/views/status_bubble_views.cc (right): https://codereview.chromium.org/2044223006/diff/40001/chrome/browser/ui/views/status_bubble_views.cc#newcode377 chrome/browser/ui/views/status_bubble_views.cc:377: // bubble. Changing things here only fixes the status ...
4 years, 6 months ago (2016-06-22 05:02:30 UTC) #22
sunxd
On 2016/06/22 05:02:30, Peter Kasting (OOO) wrote: > https://codereview.chromium.org/2044223006/diff/40001/chrome/browser/ui/views/status_bubble_views.cc > File chrome/browser/ui/views/status_bubble_views.cc (right): > > ...
4 years, 6 months ago (2016-06-24 15:49:28 UTC) #24
sunxd
4 years, 6 months ago (2016-06-24 15:49:32 UTC) #25
Peter Kasting
Yes, you will need to fix the test by changing the SupportsAlpha case to expect ...
4 years, 5 months ago (2016-06-29 23:25:37 UTC) #26
sunxd
https://codereview.chromium.org/2044223006/diff/80001/chrome/browser/ui/views/status_bubble_views.cc File chrome/browser/ui/views/status_bubble_views.cc (right): https://codereview.chromium.org/2044223006/diff/80001/chrome/browser/ui/views/status_bubble_views.cc#newcode377 chrome/browser/ui/views/status_bubble_views.cc:377: // bubble. On 2016/06/29 23:25:36, Peter Kasting (slow) wrote: ...
4 years, 5 months ago (2016-07-01 20:58:06 UTC) #27
Peter Kasting
LGTM https://codereview.chromium.org/2044223006/diff/100001/chrome/browser/themes/browser_theme_pack.cc File chrome/browser/themes/browser_theme_pack.cc (right): https://codereview.chromium.org/2044223006/diff/100001/chrome/browser/themes/browser_theme_pack.cc#newcode794 chrome/browser/themes/browser_theme_pack.cc:794: // toolbar color, see crbug.com/618278. Nit: Avoid referring ...
4 years, 5 months ago (2016-07-01 21:03:14 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2044223006/120001
4 years, 5 months ago (2016-07-01 22:06:42 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/195701)
4 years, 5 months ago (2016-07-01 22:21:42 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2044223006/140001
4 years, 5 months ago (2016-07-01 22:29:11 UTC) #34
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-01 23:35:14 UTC) #36
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/2044223006/140001
4 years, 5 months ago (2016-07-02 02:20:53 UTC) #39
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 5 months ago (2016-07-02 02:25:29 UTC) #41
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-02 02:25:32 UTC) #42
commit-bot: I haz the power
4 years, 5 months ago (2016-07-02 02:27:05 UTC) #44
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/32c538f0e6cd40ebd53f336f1f3fae7eb404070b
Cr-Commit-Position: refs/heads/master@{#403593}

Powered by Google App Engine
This is Rietveld 408576698