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

Unified Diff: chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm

Issue 2002103003: [Material][Mac] Adjustments to the Omnibox decorations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Shift icon to the right Created 4 years, 7 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 | chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm b/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
index 6af599c0ea08354f5d025437d0cc638b5a51567c..e7fe5ee08139e2a5677b96b09af5c2a037611f10 100644
--- a/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
@@ -27,11 +27,11 @@ CGFloat BubblePadding() {
// divider. The desired value is 8px. We get 3px by subtracting the existing
// padding in location_bar_view from 8px.
CGFloat DividerPadding() {
- return ui::MaterialDesignController::IsModeMaterial() ? 3.0 : 0.0;
+ return ui::MaterialDesignController::IsModeMaterial() ? 2.0 : 0.0;
}
// Padding between the icon and label.
-const CGFloat kIconLabelPadding = 4.0;
+CGFloat kIconLabelPadding = 4.0;
// Inset for the background.
const CGFloat kBackgroundYInset = 4.0;
@@ -70,6 +70,7 @@ NSRect BubbleDecoration::GetImageRectInFrame(NSRect frame) {
if (image_) {
// Center the image vertically.
const NSSize imageSize = [image_ size];
+
imageRect.origin.y +=
std::floor((NSHeight(frame) - imageSize.height) / 2.0);
imageRect.size = imageSize;
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698