diff options
author | glen@google.com <glen@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-31 23:58:32 +0000 |
---|---|---|
committer | glen@google.com <glen@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-31 23:58:32 +0000 |
commit | 660efb2db208d7a64e04eebad1e0e1dd7b54f3b0 (patch) | |
tree | 036994cc436667a005cff0916764bb77b9a78949 /chrome | |
parent | 652bcad9d05b36b4905b896bcf93628e18647893 (diff) | |
download | chromium_src-660efb2db208d7a64e04eebad1e0e1dd7b54f3b0.zip chromium_src-660efb2db208d7a64e04eebad1e0e1dd7b54f3b0.tar.gz chromium_src-660efb2db208d7a64e04eebad1e0e1dd7b54f3b0.tar.bz2 |
Minor alignment tweaks to simple XP frame.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/simple_xp_frame.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/simple_xp_frame.cc b/chrome/browser/simple_xp_frame.cc index c2038ea..54a9d38 100644 --- a/chrome/browser/simple_xp_frame.cc +++ b/chrome/browser/simple_xp_frame.cc @@ -60,7 +60,10 @@ static const SkColor kTitleBarTextColor = SkColorSetRGB(255, 255, 255); static const int kTopResizeBarHeight = 3; // Left margin on the left side of the favicon. -static const int kFavIconMargin = 2; +static const int kFavIconMargin = 1; + +// Label offset. +static const int kLabelVerticalOffset = -1; // Padding between the favicon and the text. static const int kFavIconPadding = 4; @@ -228,11 +231,11 @@ void SimpleXPFrameTitleBar::RunMenu(ChromeViews::View* source, void SimpleXPFrameTitleBar::Layout() { CSize s; menu_button_->GetPreferredSize(&s); - menu_button_->SetBounds(kFavIconMargin, 1 + (GetHeight() - s.cy) / 2, + menu_button_->SetBounds(kFavIconMargin, (GetHeight() - s.cy) / 2, s.cx, s.cy); menu_button_->Layout(); label_->SetBounds(menu_button_->GetX() + menu_button_->GetWidth() + - kFavIconPadding, 0, + kFavIconPadding, kLabelVerticalOffset, GetWidth() - (menu_button_->GetX() + menu_button_->GetWidth() + kFavIconPadding), GetHeight()); |