OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_popup_item_style.h" | 5 #include "ash/system/tray/tray_popup_item_style.h" |
6 | 6 |
7 #include "third_party/skia/include/core/SkColor.h" | 7 #include "third_party/skia/include/core/SkColor.h" |
8 #include "ui/gfx/color_palette.h" | 8 #include "ui/gfx/color_palette.h" |
9 #include "ui/gfx/font.h" | 9 #include "ui/gfx/font.h" |
10 #include "ui/gfx/font_list.h" | 10 #include "ui/gfx/font_list.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 gfx::Font::Weight::MEDIUM)); | 82 gfx::Font::Weight::MEDIUM)); |
83 label->SetEnabledColor(label->GetNativeTheme()->GetSystemColor( | 83 label->SetEnabledColor(label->GetNativeTheme()->GetSystemColor( |
84 ui::NativeTheme::kColorId_ProminentButtonColor)); | 84 ui::NativeTheme::kColorId_ProminentButtonColor)); |
85 label->SetAutoColorReadabilityEnabled(false); | 85 label->SetAutoColorReadabilityEnabled(false); |
86 break; | 86 break; |
87 case FontStyle::DETAILED_VIEW_LABEL: | 87 case FontStyle::DETAILED_VIEW_LABEL: |
88 case FontStyle::SYSTEM_INFO: | 88 case FontStyle::SYSTEM_INFO: |
89 label->SetFontList(base_font_list.Derive(1, gfx::Font::NORMAL, | 89 label->SetFontList(base_font_list.Derive(1, gfx::Font::NORMAL, |
90 gfx::Font::Weight::NORMAL)); | 90 gfx::Font::Weight::NORMAL)); |
91 break; | 91 break; |
| 92 case FontStyle::CLICKABLE_SYSTEM_INFO: |
| 93 label->SetFontList(base_font_list.Derive(1, gfx::Font::NORMAL, |
| 94 gfx::Font::Weight::NORMAL)); |
| 95 label->SetEnabledColor(label->GetNativeTheme()->GetSystemColor( |
| 96 ui::NativeTheme::kColorId_ProminentButtonColor)); |
| 97 label->SetAutoColorReadabilityEnabled(false); |
| 98 break; |
92 case FontStyle::BUTTON: | 99 case FontStyle::BUTTON: |
93 label->SetFontList(base_font_list.Derive(0, gfx::Font::NORMAL, | 100 label->SetFontList(base_font_list.Derive(0, gfx::Font::NORMAL, |
94 gfx::Font::Weight::MEDIUM)); | 101 gfx::Font::Weight::MEDIUM)); |
95 break; | 102 break; |
96 case FontStyle::CAPTION: | 103 case FontStyle::CAPTION: |
97 label->SetFontList(base_font_list.Derive(0, gfx::Font::NORMAL, | 104 label->SetFontList(base_font_list.Derive(0, gfx::Font::NORMAL, |
98 gfx::Font::Weight::NORMAL)); | 105 gfx::Font::Weight::NORMAL)); |
99 break; | 106 break; |
100 } | 107 } |
101 } | 108 } |
102 | 109 |
103 } // namespace ash | 110 } // namespace ash |
OLD | NEW |