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

Unified Diff: chrome/browser/defaults.cc

Issue 16254009: Revert "Increase omnibox size by 2 px. Increase nominal font size in omnibox to 16 px." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: chrome/browser/defaults.cc
diff --git a/chrome/browser/defaults.cc b/chrome/browser/defaults.cc
index 960eeab0aa3118c092cbdac295adc9e3ca401f2a..52c4ad7a29f9b5bf75a481cbd789ce54382497cf 100644
--- a/chrome/browser/defaults.cc
+++ b/chrome/browser/defaults.cc
@@ -14,7 +14,14 @@ const bool kCanToggleSystemTitleBar = true;
#endif
#endif
-const int kOmniboxFontPixelSize = 16;
+#if defined(TOOLKIT_GTK)
+// 14px = 10.5pt @ 96dpi.
+const int kOmniboxFontPixelSize = 14;
+#else
+// Make the regular omnibox text two points larger than the nine-point font
+// used in the tab strip (11pt / 72pt/in * 96px/in = 14.667px).
+const int kOmniboxFontPixelSize = 15;
+#endif
#if defined(TOOLKIT_VIEWS)
// Windows and Chrome OS have bigger shadows in the tab art.

Powered by Google App Engine
This is Rietveld 408576698