Commit 938e46a7 authored by Jan Krcal's avatar Jan Krcal Committed by Commit Bot

[Avatar button] Make the guest mode avatar consistent with the menu

This CL makes the guest mode icon lighter gray and most notably makes
the color consistent with the user menu by using the same helper
function to create the icon.

Bug: 967317
Change-Id: I0df790897b00533a20558caf9c834db3d15ce363
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1829703
Commit-Queue: Jan Krcal <jkrcal@chromium.org>
Commit-Queue: Thomas Tangl <tangltom@chromium.org>
Auto-Submit: Jan Krcal <jkrcal@chromium.org>
Reviewed-by: default avatarThomas Tangl <tangltom@chromium.org>
Cr-Commit-Position: refs/heads/master@{#701081}
parent 69ad3740
...@@ -435,8 +435,7 @@ gfx::ImageSkia AvatarToolbarButton::GetAvatarIcon( ...@@ -435,8 +435,7 @@ gfx::ImageSkia AvatarToolbarButton::GetAvatarIcon(
return gfx::CreateVectorIcon(kIncognitoIcon, icon_size, icon_color); return gfx::CreateVectorIcon(kIncognitoIcon, icon_size, icon_color);
case State::kGuestSession: case State::kGuestSession:
if (base::FeatureList::IsEnabled(features::kAnimatedAvatarButton)) { if (base::FeatureList::IsEnabled(features::kAnimatedAvatarButton)) {
return gfx::CreateVectorIcon(kUserAccountAvatarIcon, icon_size, return profiles::GetGuestAvatar(icon_size);
icon_color);
} }
return gfx::CreateVectorIcon(kUserMenuGuestIcon, icon_size, icon_color); return gfx::CreateVectorIcon(kUserMenuGuestIcon, icon_size, icon_color);
case State::kGenericProfile: case State::kGenericProfile:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment