Index: chrome/browser/ui/views/profiles/new_avatar_button.cc |
diff --git a/chrome/browser/ui/views/profiles/new_avatar_button.cc b/chrome/browser/ui/views/profiles/new_avatar_button.cc |
index b30f7746c14875f19ed2dd473537e3eb1322e347..81957808ad24ca27a32e4d1042944ead4965b0bd 100644 |
--- a/chrome/browser/ui/views/profiles/new_avatar_button.cc |
+++ b/chrome/browser/ui/views/profiles/new_avatar_button.cc |
@@ -61,6 +61,11 @@ NewAvatarButton::NewAvatarButton( |
gfx::ShadowValue(gfx::Point(), 1.0f, SK_ColorDKGRAY))); |
SetTextSubpixelRenderingEnabled(false); |
+ // The largest text height that fits in the button. If the font list height |
+ // is larger than this, it will be shrunk to match it. |
Peter Kasting
2014/08/29 18:12:26
Nit: Maybe a TODO about changing the constant here
noms (inactive)
2014/08/29 18:20:22
Done.
|
+ const int kDisplayFontHeight = 15; |
+ SetFontList(GetFontList().DeriveWithHeightUpperBound(kDisplayFontHeight)); |
+ |
ui::ResourceBundle* rb = &ui::ResourceBundle::GetSharedInstance(); |
if (button_style == THEMED_BUTTON) { |
const int kNormalImageSet[] = IMAGE_GRID(IDR_AVATAR_THEMED_BUTTON_NORMAL); |