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

Unified Diff: chrome/browser/ui/views/extensions/bundle_installed_bubble.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 | « no previous file | chrome/browser/ui/views/extensions/extension_install_dialog_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/extensions/bundle_installed_bubble.cc
diff --git a/chrome/browser/ui/views/extensions/bundle_installed_bubble.cc b/chrome/browser/ui/views/extensions/bundle_installed_bubble.cc
index dc48836edaa7f42707de7fb7704235d88338333d..5256b5916e7466a793901a2b0176546613819a43 100644
--- a/chrome/browser/ui/views/extensions/bundle_installed_bubble.cc
+++ b/chrome/browser/ui/views/extensions/bundle_installed_bubble.cc
@@ -32,9 +32,6 @@ const int kColumnSetId = 0;
// The width of the left column.
const int kLeftColumnWidth = 325;
-// Heading font size correction.
-const int kHeadingFontSizeDelta = 1;
-
class BundleInstalledBubble : public views::BubbleDelegateView,
public views::ButtonListener {
public:
@@ -136,10 +133,8 @@ class BundleInstalledBubble : public views::BubbleDelegateView,
void AddHeading(GridLayout* layout, const string16& heading) {
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
- gfx::Font bold_font = rb.GetFont(ui::ResourceBundle::BaseFont).DeriveFont(
- kHeadingFontSizeDelta, gfx::Font::BOLD);
-
- views::Label* heading_label = new views::Label(heading, bold_font);
+ views::Label* heading_label = new views::Label(
+ heading, rb.GetFont(ui::ResourceBundle::MediumFont));
heading_label->SetMultiLine(true);
heading_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
heading_label->SizeToFit(kLeftColumnWidth);
« no previous file with comments | « no previous file | chrome/browser/ui/views/extensions/extension_install_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698