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

Unified Diff: ash/system/user/user_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/user_card_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/user/user_view.cc
diff --git a/ash/system/user/user_view.cc b/ash/system/user/user_view.cc
index 72386b7d977e6c15871f151c60e9984a9fe62371..f20ba284911924b94e90082e58bae6076bfb6af7 100644
--- a/ash/system/user/user_view.cc
+++ b/ash/system/user/user_view.cc
@@ -10,6 +10,7 @@
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/shell_window_ids.h"
#include "ash/common/system/tray/system_tray_delegate.h"
+#include "ash/common/system/tray/tray_constants.h"
#include "ash/common/system/tray/tray_popup_label_button.h"
#include "ash/common/system/tray/tray_popup_label_button_border.h"
#include "ash/common/system/user/button_from_view.h"
@@ -163,12 +164,12 @@ void AddUserView::AddContent() {
AddChildViewAt(add_user_, 0);
// Add the [+] icon which is also the anchor for messages.
- RoundedImageView* icon = new RoundedImageView(kTrayAvatarCornerRadius, true);
+ RoundedImageView* icon = new RoundedImageView(kTrayRoundedBorderRadius, true);
anchor_ = icon;
icon->SetImage(*ui::ResourceBundle::GetSharedInstance()
.GetImageNamed(IDR_AURA_UBER_TRAY_ADD_MULTIPROFILE_USER)
.ToImageSkia(),
- gfx::Size(kTrayAvatarSize, kTrayAvatarSize));
+ gfx::Size(kTrayItemSize, kTrayItemSize));
add_user_->AddChildView(icon);
// Add the command text.
« no previous file with comments | « ash/system/user/user_card_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698