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

Unified Diff: chrome/browser/themes/theme_properties.cc

Issue 1306173002: Set font size to 14 in location bar for material design (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/themes/theme_properties.cc
diff --git a/chrome/browser/themes/theme_properties.cc b/chrome/browser/themes/theme_properties.cc
index b3c5fdf456461fd8249a27604b6d76dfed9cf28f..234604b88deda271b6aed9c23f0a26bb90dccb92 100644
--- a/chrome/browser/themes/theme_properties.cc
+++ b/chrome/browser/themes/theme_properties.cc
@@ -136,6 +136,9 @@ const int kOmniboxDropdownMinIconVerticalPadding[] = {2, 4, 8};
// bottom of the row's text and the top or bottom of the row edge.
const int kOmniboxDropdownMinTextVerticalPadding[] = {3, 4, 8};
+// The font size to use in the location bar and omnibox dropdown.
+const int kOmniboxFontPixelSize[] = {16, 14, 14};
+
// The spacing between a ToolbarButton's image and its border.
const int kToolbarButtonBorderInset[] = {2, 6, 6};
@@ -390,6 +393,8 @@ int ThemeProperties::GetDefaultDisplayProperty(int id) {
return kOmniboxDropdownMinIconVerticalPadding[mode];
case ThemeProperties::PROPERTY_OMNIBOX_DROPDOWN_MIN_TEXT_VERTICAL_PADDING:
return kOmniboxDropdownMinTextVerticalPadding[mode];
+ case ThemeProperties::PROPERTY_OMNIBOX_FONT_PIXEL_SIZE:
+ return kOmniboxFontPixelSize[mode];
case ThemeProperties::PROPERTY_TOOLBAR_BUTTON_BORDER_INSET:
return kToolbarButtonBorderInset[mode];
case ThemeProperties::PROPERTY_TOOLBAR_VIEW_CONTENT_SHADOW_HEIGHT:

Powered by Google App Engine
This is Rietveld 408576698