| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chromeos/status/status_area_button.h" | 5 #include "chrome/browser/chromeos/status/status_area_button.h" |
| 6 | 6 |
| 7 #include "grit/theme_resources.h" | 7 #include "grit/theme_resources.h" |
| 8 #include "ui/base/resource/resource_bundle.h" | 8 #include "ui/base/resource/resource_bundle.h" |
| 9 #include "ui/gfx/canvas.h" | 9 #include "ui/gfx/canvas.h" |
| 10 #include "ui/gfx/skbitmap_operations.h" | 10 #include "ui/gfx/skbitmap_operations.h" |
| 11 #include "ui/views/border.h" |
| 11 #include "ui/views/view.h" | 12 #include "ui/views/view.h" |
| 12 #include "views/border.h" | |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 // Colors for different text styles. | 16 // Colors for different text styles. |
| 17 const SkColor kWhitePlainTextColor = 0x99ffffff; | 17 const SkColor kWhitePlainTextColor = 0x99ffffff; |
| 18 const SkColor kGrayPlainTextColor = 0x99666666; | 18 const SkColor kGrayPlainTextColor = 0x99666666; |
| 19 const SkColor kWhiteHaloedTextColor = 0xb3ffffff; | 19 const SkColor kWhiteHaloedTextColor = 0xb3ffffff; |
| 20 const SkColor kWhiteHaloedHaloColor = 0xb3000000; | 20 const SkColor kWhiteHaloedHaloColor = 0xb3000000; |
| 21 const SkColor kGrayEmbossedTextColor = 0xff4c4c4c; | 21 const SkColor kGrayEmbossedTextColor = 0xff4c4c4c; |
| 22 const SkColor kGrayEmbossedShadowColor = 0x80ffffff; | 22 const SkColor kGrayEmbossedShadowColor = 0x80ffffff; |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 SetEnabledColor(kWhiteHaloedTextColor); | 154 SetEnabledColor(kWhiteHaloedTextColor); |
| 155 SetTextHaloColor(kWhiteHaloedHaloColor); | 155 SetTextHaloColor(kWhiteHaloedHaloColor); |
| 156 break; | 156 break; |
| 157 case GRAY_EMBOSSED: | 157 case GRAY_EMBOSSED: |
| 158 SetEnabledColor(kGrayEmbossedTextColor); | 158 SetEnabledColor(kGrayEmbossedTextColor); |
| 159 SetTextShadowColors(kGrayEmbossedShadowColor, kGrayEmbossedShadowColor); | 159 SetTextShadowColors(kGrayEmbossedShadowColor, kGrayEmbossedShadowColor); |
| 160 SetTextShadowOffset(0, 1); | 160 SetTextShadowOffset(0, 1); |
| 161 break; | 161 break; |
| 162 } | 162 } |
| 163 } | 163 } |
| OLD | NEW |