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

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

Issue 144073004: rAc: remove bold section labels on linux_aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ui::ResourceBundle::BoldOnlyIfItLooksGood() Created 6 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
Index: ui/base/resource/resource_bundle.cc
diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc
index 2cfe06cc11c2a7ecf6b81a1f75ed8508c781de1e..28a23b01d35b5fd2a233ced6d98e91da62dad517 100644
--- a/ui/base/resource/resource_bundle.cc
+++ b/ui/base/resource/resource_bundle.cc
@@ -515,6 +515,15 @@ const gfx::Font& ResourceBundle::GetFont(FontStyle style) {
return GetFontList(style).GetPrimaryFont();
}
+// static
+ResourceBundle::FontStyle ResourceBundle::BoldOnlyIfItLooksGood() {
+#if defined(USE_AURA) && defined(OS_LINUX)
+ return BaseFont;
+#else
+ return BoldFont;
+#endif // defined(USE_AURA) && defined(OS_LINUX)
+}
+
void ResourceBundle::ReloadFonts() {
base::AutoLock lock_scope(*images_and_fonts_lock_);
base_font_list_.reset();

Powered by Google App Engine
This is Rietveld 408576698