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

Unified Diff: ui/base/resource/resource_bundle.cc

Issue 7044121: Use large bold font for associated network on touch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change constant name to end in ...Style. Created 9 years, 6 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 | « ui/base/resource/resource_bundle.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/resource/resource_bundle.cc
diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc
index e2646abb8f70d82901fb09f2a416f46e94320ea1..848821c3b7aed5fcf04327255172bc11f5cd836c 100644
--- a/ui/base/resource/resource_bundle.cc
+++ b/ui/base/resource/resource_bundle.cc
@@ -177,6 +177,8 @@ const gfx::Font& ResourceBundle::GetFont(FontStyle style) {
return *medium_bold_font_;
case LargeFont:
return *large_font_;
+ case LargeBoldFont:
+ return *large_bold_font_;
default:
return *base_font_;
}
@@ -223,6 +225,11 @@ void ResourceBundle::LoadFontsIfNecessary() {
large_font_.reset(new gfx::Font());
*large_font_ = base_font_->DeriveFont(kLargeFontSizeDelta);
+
+ large_bold_font_.reset(new gfx::Font());
+ *large_bold_font_ =
+ base_font_->DeriveFont(kLargeFontSizeDelta,
+ base_font_->GetStyle() | gfx::Font::BOLD);
}
}
« no previous file with comments | « ui/base/resource/resource_bundle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698