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

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
« no previous file with comments | « ash/shelf/overflow_button.cc ('k') | ash/shelf/shelf_layout_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_button.cc
diff --git a/ash/shelf/shelf_button.cc b/ash/shelf/shelf_button.cc
index aba40d0dd559d2d9c6ceaf09ebd20f0aa9b27fa2..6e91f535133c7aa784899a2fd830b99ebd9c06f0 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());
« no previous file with comments | « ash/shelf/overflow_button.cc ('k') | ash/shelf/shelf_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698