summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-08 21:55:01 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-08 21:55:01 +0000
commit8afca9be268e08c6223b6aed3abdf9fd185d05cc (patch)
tree0b6d5e51f17144c7d635cae5ccfd374ece58b880 /chrome
parentcf6a7dfa8e1a689b361218f951caa1893ed4bea6 (diff)
downloadchromium_src-8afca9be268e08c6223b6aed3abdf9fd185d05cc.zip
chromium_src-8afca9be268e08c6223b6aed3abdf9fd185d05cc.tar.gz
chromium_src-8afca9be268e08c6223b6aed3abdf9fd185d05cc.tar.bz2
[Mac] Tweak location icon spacing in omnibox.
BUG=40419 TEST=Icons and text line up between field and popup. TEST=Compare mock at http://crbug.com/27570 Review URL: http://codereview.chromium.org/1525021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44008 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/autocomplete/autocomplete_popup_view_mac.mm4
-rw-r--r--chrome/browser/cocoa/autocomplete_text_field_cell.mm4
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view_mac.mm b/chrome/browser/autocomplete/autocomplete_popup_view_mac.mm
index f01951b..6c6d173 100644
--- a/chrome/browser/autocomplete/autocomplete_popup_view_mac.mm
+++ b/chrome/browser/autocomplete/autocomplete_popup_view_mac.mm
@@ -39,10 +39,10 @@ const CGFloat kPopupFieldGap = 0.0;
const CGFloat kPopupAlpha = 240.0 / 255.0;
// How much space to leave for the left and right margins.
-const CGFloat kLeftRightMargin = 8.0;
+const CGFloat kLeftRightMargin = 5.0;
// How far to offset the text column from the left.
-const CGFloat kTextXOffset = 33.0;
+const CGFloat kTextXOffset = 29.0;
// Animation duration when animating the popup window smaller.
const CGFloat kShrinkAnimationDuration = 0.1;
diff --git a/chrome/browser/cocoa/autocomplete_text_field_cell.mm b/chrome/browser/cocoa/autocomplete_text_field_cell.mm
index af32490..ae86541 100644
--- a/chrome/browser/cocoa/autocomplete_text_field_cell.mm
+++ b/chrome/browser/cocoa/autocomplete_text_field_cell.mm
@@ -51,8 +51,8 @@ const NSInteger kIconLabelYOffset = 7;
const CGFloat kEditorHorizontalInset = 3.0;
// Cause the location icon to line up above the icons in the popup.
-const CGFloat kLocationIconXOffset = 9.0;
-const CGFloat kLocationIconXPad = 5.0;
+const CGFloat kLocationIconXOffset = 6.0;
+const CGFloat kLocationIconXPad = 1.0;
// How long to wait for mouse-up on the location icon before assuming
// that the user wants to drag.