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

Unified Diff: ash/launcher/launcher_button.cc

Issue 9699044: tweak icon spacing for launcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_button.cc
diff --git a/ash/launcher/launcher_button.cc b/ash/launcher/launcher_button.cc
index b9f50004255b3b6cae1a72e994c142596cb5b068..54c3b8f73531904d869cf51dcc571a196301e785 100644
--- a/ash/launcher/launcher_button.cc
+++ b/ash/launcher/launcher_button.cc
@@ -15,7 +15,7 @@
namespace {
const int kBarHeight = 4;
-const int kBarSpacing = 10;
+const int kBarSpacing = 6;
const int kIconHeight = 32;
const int kIconWidth = 48;
const int kHopSpacing = 2;
@@ -182,7 +182,11 @@ void LauncherButton::GetAccessibleState(ui::AccessibleViewState* state) {
void LauncherButton::Layout() {
int image_x = (width() - icon_view_->width()) / 2;
- int image_y = ShouldHop(state_) ? 0 : kHopSpacing;
+ int image_y = height() - (icon_view_->height() + kBarHeight + kBarSpacing);
+
+ if (ShouldHop(state_))
+ image_y -= kHopSpacing;
+
icon_view_->SetPosition(gfx::Point(image_x, image_y));
bar_->SetBounds(0, height() - kBarHeight, width(), kBarHeight);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698