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

Unified Diff: ash/system/tray/tray_views.cc

Issue 12087033: Status tray text looks too small compared to icons (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: crbug.com/169275 Created 7 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_views.cc
diff --git a/ash/system/tray/tray_views.cc b/ash/system/tray/tray_views.cc
index 8a4495576e602a76988a51a548cc9762005308be..86d9f0514284f77ab558be1ab25f705eb472b59d 100644
--- a/ash/system/tray/tray_views.cc
+++ b/ash/system/tray/tray_views.cc
@@ -698,8 +698,10 @@ void SpecialPopupRow::Layout() {
}
void SetupLabelForTray(views::Label* label) {
- ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
- label->SetFont(rb.GetFont(ui::ResourceBundle::BoldFont));
+ // Making label_font static to avoid the time penalty of DeriveFont for
+ // all but the first call.
+ static const gfx::Font label_font(gfx::Font().DeriveFont(1, gfx::Font::BOLD));
+ label->SetFont(label_font);
label->SetAutoColorReadabilityEnabled(false);
label->SetEnabledColor(SK_ColorWHITE);
label->SetBackgroundColor(SkColorSetARGB(0, 255, 255, 255));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698