From f778d1f29be6a8f9702cceb9f9804cefbe833fba Mon Sep 17 00:00:00 2001 From: "varunjain@chromium.org" Date: Mon, 20 Aug 2012 23:48:37 +0000 Subject: Fix tab-strip related constants to accommodate the new images. 1. Shift tab contents up by 2px. 2. Shift close button left by 4px. 3. Increase the space between tabs (the width of the "V") by 3px. 4. Shift omnibox down 1px. BUG=137351 TEST=none Review URL: https://chromiumcodereview.appspot.com/10829389 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152429 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/views/tabs/tab.cc | 4 ++-- chrome/browser/ui/views/tabs/tab_strip.cc | 2 +- chrome/browser/ui/views/toolbar_view.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome/browser/ui/views/tabs/tab.cc b/chrome/browser/ui/views/tabs/tab.cc index f540b84..fcebe30 100644 --- a/chrome/browser/ui/views/tabs/tab.cc +++ b/chrome/browser/ui/views/tabs/tab.cc @@ -57,7 +57,7 @@ int top_padding() { switch (ui::GetDisplayLayout()) { case ui::LAYOUT_ASH: case ui::LAYOUT_DESKTOP: - value = 8; + value = 6; break; case ui::LAYOUT_TOUCH: value = 12; @@ -166,7 +166,7 @@ static const int kCloseButtonVertFuzz = 1; static const int kCloseButtonVertFuzz = 0; #endif // Additional horizontal offset for close button relative to title text. -static const int kCloseButtonHorzFuzz = 7; +static const int kCloseButtonHorzFuzz = 3; // When a non-mini-tab becomes a mini-tab the width of the tab animates. If // the width of a mini-tab is >= kMiniTabRendererAsNormalTabWidth then the tab diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc index f2f084a..88af36e 100644 --- a/chrome/browser/ui/views/tabs/tab_strip.cc +++ b/chrome/browser/ui/views/tabs/tab_strip.cc @@ -146,7 +146,7 @@ int tab_h_offset() { switch (ui::GetDisplayLayout()) { case ui::LAYOUT_ASH: case ui::LAYOUT_DESKTOP: - value = -29; + value = -26; break; case ui::LAYOUT_TOUCH: value = -39; diff --git a/chrome/browser/ui/views/toolbar_view.cc b/chrome/browser/ui/views/toolbar_view.cc index bbcbf64..ceb5546 100644 --- a/chrome/browser/ui/views/toolbar_view.cc +++ b/chrome/browser/ui/views/toolbar_view.cc @@ -117,7 +117,7 @@ int location_bar_vert_spacing() { switch (ui::GetDisplayLayout()) { case ui::LAYOUT_ASH: case ui::LAYOUT_DESKTOP: - value = 4; + value = 5; break; case ui::LAYOUT_TOUCH: value = 6; -- cgit v1.1