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

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: Mac fixes 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..43412a52e5f7fb5fe2df7b3fd4b1cdc02dc452a2 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