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

Unified Diff: chrome/browser/ui/views/desktop_capture/desktop_media_source_view.cc

Issue 1819753003: Allow various font weights in gfx. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a lost comment and modify a render text unittest to not test black because of test env font con… Created 4 years, 7 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: chrome/browser/ui/views/desktop_capture/desktop_media_source_view.cc
diff --git a/chrome/browser/ui/views/desktop_capture/desktop_media_source_view.cc b/chrome/browser/ui/views/desktop_capture/desktop_media_source_view.cc
index 6a55124f77b20e1f7f6fa69b1208871f6b939f52..616270e78e827e83d9c32af829bdc902867f1f99 100644
--- a/chrome/browser/ui/views/desktop_capture/desktop_media_source_view.cc
+++ b/chrome/browser/ui/views/desktop_capture/desktop_media_source_view.cc
@@ -88,11 +88,13 @@ void DesktopMediaSourceView::SetSelected(bool selected) {
ui::NativeTheme::kColorId_FocusedMenuItemBackgroundColor);
image_view_->SetBorder(views::Border::CreateSolidBorder(
style_.selection_border_thickness, border_color));
- label_->SetFontList(label_->font_list().Derive(0, gfx::Font::BOLD));
+ label_->SetFontList(label_->font_list().Derive(0, gfx::Font::NORMAL,
+ gfx::Font::Weight::BOLD));
parent_->OnSelectionChanged();
} else {
image_view_->SetBorder(views::Border::NullBorder());
- label_->SetFontList(label_->font_list().Derive(0, gfx::Font::NORMAL));
+ label_->SetFontList(label_->font_list().Derive(0, gfx::Font::NORMAL,
+ gfx::Font::Weight::NORMAL));
}
SchedulePaint();
« no previous file with comments | « chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc ('k') | chrome/browser/ui/views/first_run_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698