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

Unified Diff: ui/app_list/views/search_result_view.cc

Issue 1819753003: Allow various font weights in gfx. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/app_list/views/search_result_view.cc
diff --git a/ui/app_list/views/search_result_view.cc b/ui/app_list/views/search_result_view.cc
index 909a05f2200c3c676fc3f2fca07213426682ef19..9898815fd052718e541733f0a3ba431b0ff1b806 100644
--- a/ui/app_list/views/search_result_view.cc
+++ b/ui/app_list/views/search_result_view.cc
@@ -57,7 +57,7 @@ gfx::RenderText* CreateRenderText(const base::string16& text,
continue;
if (it->styles & SearchResult::Tag::MATCH)
- render_text->ApplyStyle(gfx::BOLD, true, it->range);
+ render_text->ApplyWeight(gfx::Font::WEIGHT_BOLD, it->range);
if (it->styles & SearchResult::Tag::DIM)
render_text->ApplyColor(kResultDimmedTextColor, it->range);
else if (it->styles & SearchResult::Tag::URL)

Powered by Google App Engine
This is Rietveld 408576698