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

Unified Diff: ash/shelf/shelf_button.cc

Issue 2070143003: Add MD ink drop ripple to app list button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@b612539_shelf_button_ripple
Patch Set: Updated tests 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
Index: ash/shelf/shelf_button.cc
diff --git a/ash/shelf/shelf_button.cc b/ash/shelf/shelf_button.cc
index 0f5d112c0e32b15f1d9895984aa45c1f98d86ce3..fbf4b132183aac05728848ef463cde1895e774f3 100644
--- a/ash/shelf/shelf_button.cc
+++ b/ash/shelf/shelf_button.cc
@@ -54,7 +54,6 @@ const int kIndicatorCanvasScale = 5;
const int kInkDropSmallSize = 48;
const int kInkDropLargeSize = 60;
const int kInkDropLargeCornerRadius = 4;
-const SkColor kInkDropBaseColor = SK_ColorWHITE;
// Paints an activity indicator on |canvas| whose |size| is specified in DIP.
void PaintIndicatorOnCanvas(gfx::Canvas* canvas, const gfx::Size& size) {
@@ -261,7 +260,7 @@ ShelfButton::ShelfButton(InkDropButtonListener* listener, ShelfView* shelf_view)
SetFocusBehavior(FocusBehavior::ACCESSIBLE_ONLY);
if (ash::MaterialDesignController::IsShelfMaterial()) {
SetHasInkDrop(true);
- set_ink_drop_base_color(kInkDropBaseColor);
+ set_ink_drop_base_color(kShelfInkDropBaseColor);
}
const gfx::ShadowValue kShadows[] = {
« no previous file with comments | « ash/shelf/shelf.cc ('k') | ash/shelf/shelf_view.h » ('j') | ash/shelf/shelf_view_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698