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

Unified Diff: ash/shelf/shelf_button.cc

Issue 1998933002: Update shelf spacing in Chrome OS according to the MD specs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments & Refactor border around item implementation Created 4 years, 7 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 70adc8c43270de7649fe2051108f8bbfd8d961f2..591094bf759d39f9da1c0104832da1c372d84e14 100644
--- a/ash/shelf/shelf_button.cc
+++ b/ash/shelf/shelf_button.cc
@@ -509,7 +509,8 @@ void ShelfButton::UpdateBar() {
Shelf* shelf = shelf_view_->shelf();
gfx::ImageSkia image;
if (ash::MaterialDesignController::IsShelfMaterial()) {
- gfx::Size size(kShelfButtonSize, kShelfSize);
+ gfx::Size size(GetShelfLayoutConstant(SHELF_BUTTON_SIZE),
+ GetShelfLayoutConstant(SHELF_SIZE));
gfx::Canvas canvas(size, kIndicatorCanvasScale, true /* is_opaque */);
PaintIndicatorOnCanvas(&canvas, size);
image = gfx::ImageSkia(canvas.ExtractImageRep());

Powered by Google App Engine
This is Rietveld 408576698