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

Unified Diff: ash/shelf/app_list_button.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/common/system/web_notification/web_notification_tray.cc ('k') | ash/shelf/overflow_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/app_list_button.cc
diff --git a/ash/shelf/app_list_button.cc b/ash/shelf/app_list_button.cc
index 1fb50398c101db0230bfe64aa0f319a58a00e72f..1e491bfea8dfe01f05a5a8bc5a395ad600c0ea94 100644
--- a/ash/shelf/app_list_button.cc
+++ b/ash/shelf/app_list_button.cc
@@ -30,9 +30,6 @@
namespace ash {
-// Radius of the app list button circular background.
-const int kAppListButtonBackgroundRadius = 16;
-
AppListButton::AppListButton(InkDropButtonListener* listener,
ShelfView* shelf_view)
: views::ImageButton(nullptr),
@@ -146,9 +143,7 @@ void AppListButton::PaintBackgroundMD(gfx::Canvas* canvas) {
gfx::Point circle_center = GetContentsBounds().CenterPoint();
if (!IsHorizontalAlignment(shelf_view_->shelf()->alignment()))
circle_center = gfx::Point(circle_center.y(), circle_center.x());
-
- canvas->DrawCircle(circle_center, kAppListButtonBackgroundRadius,
- background_paint);
+ canvas->DrawCircle(circle_center, kAppListButtonRadius, background_paint);
if (Shell::GetInstance()->GetAppListTargetVisibility() ||
draw_background_as_active_) {
@@ -156,9 +151,7 @@ void AppListButton::PaintBackgroundMD(gfx::Canvas* canvas) {
highlight_paint.setColor(kShelfButtonActivatedHighlightColor);
highlight_paint.setFlags(SkPaint::kAntiAlias_Flag);
highlight_paint.setStyle(SkPaint::kFill_Style);
-
- canvas->DrawCircle(circle_center, kAppListButtonBackgroundRadius,
- highlight_paint);
+ canvas->DrawCircle(circle_center, kAppListButtonRadius, highlight_paint);
}
}
« no previous file with comments | « ash/common/system/web_notification/web_notification_tray.cc ('k') | ash/shelf/overflow_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698