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

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: Merge 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 2e903292bc255cbff8244bd69c2daa54cacc1fde..47ad587b7b874f000f41a5859604439cd58a70da 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(GetShelfConstant(SHELF_BUTTON_SIZE),
+ GetShelfConstant(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