| OLD | NEW |
| 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 |
| OLD | NEW |