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

Side by Side Diff: chrome/browser/gtk/tabs/tab_renderer_gtk.cc

Issue 159119: linux: use tiny font in tab strip (Closed)
Patch Set: Created 11 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/gtk/tabs/tab_renderer_gtk.h" 5 #include "chrome/browser/gtk/tabs/tab_renderer_gtk.h"
6 6
7 #include "app/gfx/canvas_paint.h" 7 #include "app/gfx/canvas_paint.h"
8 #include "app/gfx/favicon_size.h" 8 #include "app/gfx/favicon_size.h"
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 } 810 }
811 811
812 // static 812 // static
813 void TabRendererGtk::InitResources() { 813 void TabRendererGtk::InitResources() {
814 if (initialized_) 814 if (initialized_)
815 return; 815 return;
816 816
817 LoadTabImages(); 817 LoadTabImages();
818 818
819 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 819 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
820 // Force the font size to 10pt. 820 // Force the font size to 8pt.
821 gfx::Font base_font = rb.GetFont(ResourceBundle::BaseFont); 821 gfx::Font base_font = rb.GetFont(ResourceBundle::BaseFont);
822 title_font_ = new gfx::Font(gfx::Font::CreateFont(base_font.FontName(), 10)); 822 title_font_ = new gfx::Font(gfx::Font::CreateFont(base_font.FontName(), 8));
823 title_font_height_ = title_font_->height(); 823 title_font_height_ = title_font_->height();
824 824
825 crashed_fav_icon = rb.GetBitmapNamed(IDR_SAD_FAVICON); 825 crashed_fav_icon = rb.GetBitmapNamed(IDR_SAD_FAVICON);
826 826
827 initialized_ = true; 827 initialized_ = true;
828 } 828 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698