summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_bar_constants.h
diff options
context:
space:
mode:
authorpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-29 17:37:45 +0000
committerpinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-29 17:37:45 +0000
commitbf7b0118488dca550c4fe2fc6afa2d5974fd5654 (patch)
tree9adba2488af0a20c7139690687c6ac321b5771b1 /chrome/browser/cocoa/bookmark_bar_constants.h
parent41314457279190664076d06b57c69d0facbdba98 (diff)
downloadchromium_src-bf7b0118488dca550c4fe2fc6afa2d5974fd5654.zip
chromium_src-bf7b0118488dca550c4fe2fc6afa2d5974fd5654.tar.gz
chromium_src-bf7b0118488dca550c4fe2fc6afa2d5974fd5654.tar.bz2
Toolbar facelift. Main buttons larger and more spread out, only get borders when mouse is inside. Fix to gradient button to not show border on mouseover when disabled. Adjust "overlap" between the toolbar and bookmark bar to allow for larger buttons w/out clipping.
Nib change: All buttons changed to not bordered, button cell tags are 0. Buttons are 31x31 and spread out a bit more. BUG=44574 TEST=toolbar and bookmark bar appearance, hidden, always showing, and detached on NTP. Review URL: http://codereview.chromium.org/2806041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51143 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_bar_constants.h')
-rw-r--r--chrome/browser/cocoa/bookmark_bar_constants.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_constants.h b/chrome/browser/cocoa/bookmark_bar_constants.h
index 216fc8c..0c0a905 100644
--- a/chrome/browser/cocoa/bookmark_bar_constants.h
+++ b/chrome/browser/cocoa/bookmark_bar_constants.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -11,8 +11,15 @@
namespace bookmarks {
-// Our height, when opened in "always visible" mode.
-const int kBookmarkBarHeight = 28;
+// Correction used for computing other values based on the height.
+const int kVisualHeightOffset = 2;
+
+// Bar height, when opened in "always visible" mode. This is actually a little
+// smaller than it should be (by |kVisualHeightOffset| points) because of the
+// visual overlap with the main toolbar. When using this to compute values
+// other than the actual height of the toolbar, be sure to add
+// |kVisualHeightOffset|.
+const int kBookmarkBarHeight = 26;
// Our height, when visible in "new tab page" mode.
const int kNTPBookmarkBarHeight = 40;
@@ -20,10 +27,10 @@ const int kNTPBookmarkBarHeight = 40;
// The amount of space between the inner bookmark bar and the outer toolbar on
// new tab pages.
const int kNTPBookmarkBarPadding =
- (kNTPBookmarkBarHeight - kBookmarkBarHeight) / 2;
+ (kNTPBookmarkBarHeight - (kBookmarkBarHeight + kVisualHeightOffset)) / 2;
// The height of buttons in the bookmark bar.
-const int kBookmarkButtonHeight = kBookmarkBarHeight;
+const int kBookmarkButtonHeight = kBookmarkBarHeight + kVisualHeightOffset;
} // namespace bookmarks