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

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

Issue 2734113006: "Bootstrap" a toolkit-views Typography spec. (Closed)
Patch Set: Rebase (conflict in layout_delegate.h due to r457774) 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 781b2b49c68a1386a9a0ac55cd8ee4aa99d0b85d..2c57d120188a01cbe139514263c98687d8333cb7 100644
--- a/chrome/browser/ui/views/validation_message_bubble_view.cc
+++ b/chrome/browser/ui/views/validation_message_bubble_view.cc
@@ -42,8 +42,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::style::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