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

Unified Diff: ash/common/system/user/tray_user.cc

Issue 2510603003: Add ink drop ripple to status tray (Closed)
Patch Set: Addressed review comments Created 4 years, 1 month 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/common/system/tray/tray_popup_utils.cc ('k') | ui/views/animation/ink_drop_host_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/user/tray_user.cc
diff --git a/ash/common/system/user/tray_user.cc b/ash/common/system/user/tray_user.cc
index c061d4d6dcfa0a2501ce95f9dd0986758d5bdde2..98f009e95588162ee4901b0c52f454f171d289cf 100644
--- a/ash/common/system/user/tray_user.cc
+++ b/ash/common/system/user/tray_user.cc
@@ -157,6 +157,10 @@ void TrayUser::UpdateAfterLoginStatusChange(LoginStatus status) {
}
if (need_avatar) {
avatar_ = new tray::RoundedImageView(kTrayRoundedBorderRadius, true);
+ if (MaterialDesignController::IsShelfMaterial()) {
+ avatar_->SetPaintToLayer(true);
+ avatar_->layer()->SetFillsBoundsOpaquely(false);
+ }
layout_view_->AddChildView(avatar_);
} else {
avatar_ = nullptr;
« no previous file with comments | « ash/common/system/tray/tray_popup_utils.cc ('k') | ui/views/animation/ink_drop_host_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698