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

Unified Diff: chrome/browser/chromeos/status/clock_menu_button.cc

Issue 5180002: Adjust default font sizes for new hand hinted fonts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - textbutton header Created 10 years, 1 month 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/chromeos/status/clock_menu_button.cc
diff --git a/chrome/browser/chromeos/status/clock_menu_button.cc b/chrome/browser/chromeos/status/clock_menu_button.cc
index 447be4314aef4dbac2a8ea4999fa5bbc7fd89133..93e44eb7c116c0bf97e5db66ab447e788508fdef 100644
--- a/chrome/browser/chromeos/status/clock_menu_button.cc
+++ b/chrome/browser/chromeos/status/clock_menu_button.cc
@@ -25,6 +25,12 @@ namespace chromeos {
// when the timer goes off.
const int kTimerSlopSeconds = 1;
+#if defined(CROS_FONTS_USING_BCI)
+const int kFontSizeDelta = 0;
+#else
+const int kFontSizeDelta = 1;
+#endif
+
ClockMenuButton::ClockMenuButton(StatusAreaHost* host)
: StatusAreaButton(this),
host_(host) {
@@ -34,7 +40,7 @@ ClockMenuButton::ClockMenuButton(StatusAreaHost* host)
set_border(NULL);
set_use_menu_button_paint(true);
SetFont(ResourceBundle::GetSharedInstance().GetFont(
- ResourceBundle::BaseFont).DeriveFont(1));
+ ResourceBundle::BaseFont).DeriveFont(kFontSizeDelta));
SetEnabledColor(0xB3FFFFFF); // White with 70% Alpha
SetShowMultipleIconStates(false);
set_alignment(TextButton::ALIGN_CENTER);
« no previous file with comments | « chrome/browser/chromeos/login/user_controller.cc ('k') | chrome/browser/chromeos/status/input_method_menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698