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

Side by Side Diff: ash/system/tray/tray_utils.cc

Issue 2823133002: Clean up some ash constants. (Closed)
Patch Set: ditto Created 3 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/system/tray/tray_utils.h" 5 #include "ash/system/tray/tray_utils.h"
6 6
7 #include "ash/system/tray/tray_constants.h"
7 #include "ui/gfx/font_list.h" 8 #include "ui/gfx/font_list.h"
8 #include "ui/views/controls/label.h" 9 #include "ui/views/controls/label.h"
9 10
10 namespace ash { 11 namespace ash {
11 12
12 void SetupLabelForTray(views::Label* label) { 13 void SetupLabelForTray(views::Label* label) {
13 // The text is drawn on an transparent bg, so we must disable subpixel 14 // The text is drawn on an transparent bg, so we must disable subpixel
14 // rendering. 15 // rendering.
15 label->SetSubpixelRenderingEnabled(false); 16 label->SetSubpixelRenderingEnabled(false);
16 label->SetFontList( 17 label->SetFontList(gfx::FontList().Derive(
17 gfx::FontList().Derive(2, gfx::Font::NORMAL, gfx::Font::Weight::MEDIUM)); 18 kTrayTextFontSizeIncrease, gfx::Font::NORMAL, gfx::Font::Weight::MEDIUM));
18 } 19 }
19 20
20 } // namespace ash 21 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/tray_constants.cc ('k') | ash/system/web_notification/ash_popup_alignment_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698