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

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

Issue 11698005: Adjust fonts (part of 137349): use standard font sizes in chrome/browser/ui/views (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: crbug.com/166679 Created 8 years 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
« no previous file with comments | « chrome/browser/ui/views/global_error_bubble_view.cc ('k') | chrome/browser/ui/views/sad_tab_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/password_generation_bubble_view.cc
diff --git a/chrome/browser/ui/views/password_generation_bubble_view.cc b/chrome/browser/ui/views/password_generation_bubble_view.cc
index 26388975ef347f1e02d8d032cb8bb345dc255f6d..32902a2e357638153991269ea3e4f95a2ba44b9c 100644
--- a/chrome/browser/ui/views/password_generation_bubble_view.cc
+++ b/chrome/browser/ui/views/password_generation_bubble_view.cc
@@ -35,7 +35,7 @@ const int kBubbleMargin = 9;
const int kButtonHorizontalSpacing = 4;
const int kButtonWidth = 65;
const int kDefaultTextFieldChars = 18;
-const int kTitleLabelVerticalOffset = -3;
+const int kTitleLabelVerticalOffset = -1;
const int kVerticalPadding = 8;
// Constants for Text fieldWrapper.
@@ -148,11 +148,9 @@ void PasswordGenerationBubbleView::Init() {
// TODO(gcasto): Localize text after we have finalized the UI.
// crbug.com/118062.
- gfx::Font label_font =
- ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont);
- label_font = label_font.DeriveFont(2);
+ ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
title_label_ = new views::Label(ASCIIToUTF16("Password Suggestion"),
- label_font);
+ rb.GetFont(ui::ResourceBundle::MediumFont));
AddChildView(title_label_);
regenerate_button_ = new views::ImageButton(this);
@@ -167,10 +165,6 @@ void PasswordGenerationBubbleView::Init() {
theme_provider_->GetImageSkiaNamed(IDR_RELOAD));
textfield_ = new views::Textfield();
- gfx::Font textfield_font =
- ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont);
- textfield_font = textfield_font.DeriveFont(2, gfx::Font::BOLD);
- textfield_->SetFont(textfield_font);
textfield_->set_default_width_in_chars(kDefaultTextFieldChars);
textfield_->SetText(ASCIIToUTF16(password_generator_->Generate()));
« no previous file with comments | « chrome/browser/ui/views/global_error_bubble_view.cc ('k') | chrome/browser/ui/views/sad_tab_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698