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

Unified Diff: chrome/browser/ui/views/validation_message_bubble_view.cc

Issue 2734113006: "Bootstrap" a toolkit-views Typography spec. (Closed)
Patch Set: Rebase Created 3 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: chrome/browser/ui/views/validation_message_bubble_view.cc
diff --git a/chrome/browser/ui/views/validation_message_bubble_view.cc b/chrome/browser/ui/views/validation_message_bubble_view.cc
index 239ebef62b681a3ce25e015d170fac9a67ebac20..5ae7c5f616115a0b4251c566ee742af16e769fc1 100644
--- a/chrome/browser/ui/views/validation_message_bubble_view.cc
+++ b/chrome/browser/ui/views/validation_message_bubble_view.cc
@@ -43,8 +43,9 @@ ValidationMessageBubbleView::ValidationMessageBubbleView(
icon->SizeToPreferredSize();
AddChildView(icon);
- views::Label* label = new views::Label(
- main_text, bundle.GetFontList(ui::ResourceBundle::MediumFont));
+ // TODO(tapted): Move |main_text| to WidgetDelegate::GetWindowTitle().
+ views::Label* label =
+ new views::Label(main_text, views::typography::CONTEXT_DIALOG_TITLE);
label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
int text_start_x = icon->bounds().right() + kIconTextMargin;
int min_available = kWindowMinWidth - text_start_x;

Powered by Google App Engine
This is Rietveld 408576698