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

Unified Diff: ash/system/user/user_card_view.cc

Issue 2099103002: Give Ash material design tray items the correct size and layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split shelf and tray constants Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/user/tray_user.cc ('k') | ash/system/user/user_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/user/user_card_view.cc
diff --git a/ash/system/user/user_card_view.cc b/ash/system/user/user_card_view.cc
index 7b95edcecb494e5278851eb1472bcdebbd1394ab..0c7e4a65fd26430256b22dbba40c69fdd2fdbd4e 100644
--- a/ash/system/user/user_card_view.cc
+++ b/ash/system/user/user_card_view.cc
@@ -433,16 +433,16 @@ void UserCardView::AddUserContent(LoginStatus login_status, int user_index) {
views::View* UserCardView::CreateIcon(LoginStatus login_status,
int user_index) {
RoundedImageView* icon =
- new RoundedImageView(kTrayAvatarCornerRadius, user_index == 0);
+ new RoundedImageView(kTrayRoundedBorderRadius, user_index == 0);
if (login_status == LoginStatus::GUEST) {
icon->SetImage(*ui::ResourceBundle::GetSharedInstance()
.GetImageNamed(IDR_AURA_UBER_TRAY_GUEST_ICON)
.ToImageSkia(),
- gfx::Size(kTrayAvatarSize, kTrayAvatarSize));
+ gfx::Size(kTrayItemSize, kTrayItemSize));
} else {
SessionStateDelegate* delegate = WmShell::Get()->GetSessionStateDelegate();
icon->SetImage(delegate->GetUserInfo(user_index)->GetImage(),
- gfx::Size(kTrayAvatarSize, kTrayAvatarSize));
+ gfx::Size(kTrayItemSize, kTrayItemSize));
}
return icon;
}
« no previous file with comments | « ash/system/user/tray_user.cc ('k') | ash/system/user/user_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698