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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm

Issue 2057043002: Align the Mac Omnibox items vertically again. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm
index 456c5e4ad1edd5eeb5ef08e9c5e6f1163848660e..e303fc10a23c1afb84b38a7b93613164cc71b367 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm
@@ -132,16 +132,20 @@ NSColor* URLTextColor(BOOL is_dark_theme) {
}
NSFont* FieldFont() {
- return OmniboxViewMac::GetNormalFieldFont();
+ return OmniboxViewMac::GetFieldFont(gfx::Font::NORMAL,
+ gfx::Font::Weight::NORMAL);
}
NSFont* BoldFieldFont() {
- return OmniboxViewMac::GetBoldFieldFont();
+ return OmniboxViewMac::GetFieldFont(gfx::Font::NORMAL,
+ gfx::Font::Weight::BOLD);
}
NSFont* LargeFont() {
- return OmniboxViewMac::GetLargeFont();
+ return OmniboxViewMac::GetLargeFont(gfx::Font::NORMAL,
+ gfx::Font::Weight::NORMAL);
}
NSFont* LargeSuperscriptFont() {
- NSFont* font = OmniboxViewMac::GetLargeFont();
+ NSFont* font = OmniboxViewMac::GetLargeFont(gfx::Font::NORMAL,
+ gfx::Font::Weight::NORMAL);
// Calculate a slightly smaller font. The ratio here is somewhat arbitrary.
// Proportions from 5/9 to 5/7 all look pretty good.
CGFloat size = [font pointSize] * 5.0 / 9.0;
@@ -149,7 +153,8 @@ NSFont* LargeSuperscriptFont() {
return [NSFont fontWithDescriptor:descriptor size:size];
}
NSFont* SmallFont() {
- return OmniboxViewMac::GetSmallFont();
+ return OmniboxViewMac::GetSmallFont(gfx::Font::NORMAL,
+ gfx::Font::Weight::NORMAL);
}
CGFloat GetContentAreaWidth(NSRect cellFrame) {

Powered by Google App Engine
This is Rietveld 408576698