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

Issue 2880033003: Apply MD style to Linux avatar buttons. (Closed)

Created:
3 years, 7 months ago by Evan Stade
Modified:
3 years, 3 months ago
CC:
chromium-reviews, tfarina, dcheng, bruthig+ink_drop_chromium.org, oshima+watch_chromium.org, emx
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Apply MD style to Linux profile switcher/avatar button. This is limited to Linux because it draws the avatar button to match Linux caption buttons, but it can be enabled for custom themed browser windows on Windows as well after we write a drawing routine that looks appropriate next to those buttons. 1. Draw the button without the use of assets (scale better at larger scale factors). 2. Improve vertical centering of text. 3. Use ink drop highlight/ripple for interactions. 4. Keep active state going while profile switcher widget is open (also applies to Win10). BUG=591586 Review-Url: https://codereview.chromium.org/2880033003 Cr-Commit-Position: refs/heads/master@{#472671} Committed: https://chromium.googlesource.com/chromium/src/+/def869130c7984358d2a7f93a37f135cb34777d5

Patch Set 1 #

Patch Set 2 : tweaks #

Patch Set 3 : tweaks #

Total comments: 29

Patch Set 4 : pkasting review #

Patch Set 5 : rebase #

Total comments: 2

Patch Set 6 : updates #

Patch Set 7 : tweaks to improve inkdrop #

Patch Set 8 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -73 lines) Patch
M chrome/app/theme/theme_resources.grd View 1 chunk +1 line, -1 line 1 comment Download
M chrome/browser/ui/views/profiles/avatar_button.h View 1 2 3 4 5 6 7 6 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/profiles/avatar_button.cc View 1 2 3 4 5 6 7 8 chunks +162 lines, -67 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (24 generated)
Evan Stade
3 years, 7 months ago (2017-05-15 17:55:03 UTC) #4
Peter Kasting
LGTM with one substantive issue. https://codereview.chromium.org/2880033003/diff/40001/chrome/browser/ui/views/profiles/avatar_button.cc File chrome/browser/ui/views/profiles/avatar_button.cc (right): https://codereview.chromium.org/2880033003/diff/40001/chrome/browser/ui/views/profiles/avatar_button.cc#newcode76 chrome/browser/ui/views/profiles/avatar_button.cc:76: stroke_flags.setColor(SkColorSetA(SK_ColorBLACK, 0x2B)); Nit: Where ...
3 years, 7 months ago (2017-05-15 21:51:28 UTC) #9
Evan Stade
https://codereview.chromium.org/2880033003/diff/40001/chrome/browser/ui/views/profiles/avatar_button.cc File chrome/browser/ui/views/profiles/avatar_button.cc (right): https://codereview.chromium.org/2880033003/diff/40001/chrome/browser/ui/views/profiles/avatar_button.cc#newcode76 chrome/browser/ui/views/profiles/avatar_button.cc:76: stroke_flags.setColor(SkColorSetA(SK_ColorBLACK, 0x2B)); On 2017/05/15 21:51:27, Peter Kasting wrote: > ...
3 years, 7 months ago (2017-05-15 22:25:16 UTC) #10
Evan Stade
+bruthig for ui/views/animation +oshima for chrome/app/theme/theme_resources.grd
3 years, 7 months ago (2017-05-15 22:38:01 UTC) #13
Peter Kasting
https://codereview.chromium.org/2880033003/diff/40001/chrome/browser/ui/views/profiles/avatar_button.cc File chrome/browser/ui/views/profiles/avatar_button.cc (right): https://codereview.chromium.org/2880033003/diff/40001/chrome/browser/ui/views/profiles/avatar_button.cc#newcode76 chrome/browser/ui/views/profiles/avatar_button.cc:76: stroke_flags.setColor(SkColorSetA(SK_ColorBLACK, 0x2B)); On 2017/05/15 22:25:16, Evan Stade wrote: > ...
3 years, 7 months ago (2017-05-15 23:41:03 UTC) #17
oshima
c/a/t lgtm
3 years, 7 months ago (2017-05-16 00:38:01 UTC) #20
bruthig
lgtm with nit https://codereview.chromium.org/2880033003/diff/80001/chrome/browser/ui/views/profiles/avatar_button.cc File chrome/browser/ui/views/profiles/avatar_button.cc (right): https://codereview.chromium.org/2880033003/diff/80001/chrome/browser/ui/views/profiles/avatar_button.cc#newcode267 chrome/browser/ui/views/profiles/avatar_button.cc:267: ProfileChooserView::GetCurrentBubbleWidget()->AddObserver(this); nit: It is ok to ...
3 years, 7 months ago (2017-05-16 17:33:48 UTC) #23
Evan Stade
Ben, I made a couple tweaks to make the inkdrop behave better (mainly so that ...
3 years, 7 months ago (2017-05-16 23:50:14 UTC) #24
bruthig
slgtm
3 years, 7 months ago (2017-05-17 15:08:24 UTC) #25
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/2880033003/120001
3 years, 7 months ago (2017-05-17 15:12:37 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/456066)
3 years, 7 months ago (2017-05-17 15:17:39 UTC) #30
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/2880033003/140001
3 years, 7 months ago (2017-05-17 22:07:45 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/def869130c7984358d2a7f93a37f135cb34777d5
3 years, 7 months ago (2017-05-18 04:59:47 UTC) #36
Lei Zhang
3 years, 3 months ago (2017-09-13 07:37:34 UTC) #38
Message was sent while issue was closed.
https://codereview.chromium.org/2880033003/diff/140001/chrome/app/theme/theme...
File chrome/app/theme/theme_resources.grd (right):

https://codereview.chromium.org/2880033003/diff/140001/chrome/app/theme/theme...
chrome/app/theme/theme_resources.grd:336: <if expr="is_win">
This doesn't match the C++ code. The IDR_AVATAR_THEMED usage in avatar_button.cc
is not inside a #if defined(OS_WIN) conditional. This only works because
output_all_resource_defines defaults to true and
output_all_resource_defines="false" isn't set. See bug 627301.

Powered by Google App Engine
This is Rietveld 408576698