| 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 "ui/native_theme/fallback_theme.h" | 5 #include "ui/native_theme/fallback_theme.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "ui/gfx/color_utils.h" | 9 #include "ui/gfx/color_utils.h" |
| 10 #include "ui/native_theme/common_theme.h" | 10 #include "ui/native_theme/common_theme.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // Textfield: | 57 // Textfield: |
| 58 static const SkColor kTextfieldDefaultColor = SK_ColorBLACK; | 58 static const SkColor kTextfieldDefaultColor = SK_ColorBLACK; |
| 59 static const SkColor kTextfieldDefaultBackground = SK_ColorWHITE; | 59 static const SkColor kTextfieldDefaultBackground = SK_ColorWHITE; |
| 60 static const SkColor kTextfieldReadOnlyColor = SK_ColorDKGRAY; | 60 static const SkColor kTextfieldReadOnlyColor = SK_ColorDKGRAY; |
| 61 static const SkColor kTextfieldReadOnlyBackground = SK_ColorWHITE; | 61 static const SkColor kTextfieldReadOnlyBackground = SK_ColorWHITE; |
| 62 static const SkColor kTextfieldSelectionBackgroundFocused = | 62 static const SkColor kTextfieldSelectionBackgroundFocused = |
| 63 SkColorSetARGB(0x54, 0x60, 0xA8, 0xEB); | 63 SkColorSetARGB(0x54, 0x60, 0xA8, 0xEB); |
| 64 static const SkColor kTextfieldSelectionColor = | 64 static const SkColor kTextfieldSelectionColor = |
| 65 color_utils::AlphaBlend(SK_ColorBLACK, | 65 color_utils::AlphaBlend(SK_ColorBLACK, |
| 66 kTextfieldSelectionBackgroundFocused, 0xdd); | 66 kTextfieldSelectionBackgroundFocused, 0xdd); |
| 67 // Tooltip | |
| 68 static const SkColor kTooltipBackground = 0xFFFFFFCC; | |
| 69 // Tree | 67 // Tree |
| 70 static const SkColor kTreeBackground = SK_ColorWHITE; | 68 static const SkColor kTreeBackground = SK_ColorWHITE; |
| 71 static const SkColor kTreeTextColor = SK_ColorBLACK; | 69 static const SkColor kTreeTextColor = SK_ColorBLACK; |
| 72 static const SkColor kTreeSelectedTextColor = SK_ColorBLACK; | 70 static const SkColor kTreeSelectedTextColor = SK_ColorBLACK; |
| 73 static const SkColor kTreeSelectionBackgroundColor = | 71 static const SkColor kTreeSelectionBackgroundColor = |
| 74 SkColorSetRGB(0xEE, 0xEE, 0xEE); | 72 SkColorSetRGB(0xEE, 0xEE, 0xEE); |
| 75 static const SkColor kTreeArrowColor = SkColorSetRGB(0x7A, 0x7A, 0x7A); | 73 static const SkColor kTreeArrowColor = SkColorSetRGB(0x7A, 0x7A, 0x7A); |
| 76 // Table | 74 // Table |
| 77 static const SkColor kTableBackground = SK_ColorWHITE; | 75 static const SkColor kTableBackground = SK_ColorWHITE; |
| 78 static const SkColor kTableTextColor = SK_ColorBLACK; | 76 static const SkColor kTableTextColor = SK_ColorBLACK; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 return kTextfieldDefaultBackground; | 173 return kTextfieldDefaultBackground; |
| 176 case kColorId_TextfieldReadOnlyColor: | 174 case kColorId_TextfieldReadOnlyColor: |
| 177 return kTextfieldReadOnlyColor; | 175 return kTextfieldReadOnlyColor; |
| 178 case kColorId_TextfieldReadOnlyBackground: | 176 case kColorId_TextfieldReadOnlyBackground: |
| 179 return kTextfieldReadOnlyBackground; | 177 return kTextfieldReadOnlyBackground; |
| 180 case kColorId_TextfieldSelectionColor: | 178 case kColorId_TextfieldSelectionColor: |
| 181 return kTextfieldSelectionColor; | 179 return kTextfieldSelectionColor; |
| 182 case kColorId_TextfieldSelectionBackgroundFocused: | 180 case kColorId_TextfieldSelectionBackgroundFocused: |
| 183 return kTextfieldSelectionBackgroundFocused; | 181 return kTextfieldSelectionBackgroundFocused; |
| 184 | 182 |
| 185 // Tooltip | |
| 186 case kColorId_TooltipBackground: | |
| 187 return kTooltipBackground; | |
| 188 | |
| 189 // Tree | 183 // Tree |
| 190 case kColorId_TreeBackground: | 184 case kColorId_TreeBackground: |
| 191 return kTreeBackground; | 185 return kTreeBackground; |
| 192 case kColorId_TreeText: | 186 case kColorId_TreeText: |
| 193 return kTreeTextColor; | 187 return kTreeTextColor; |
| 194 case kColorId_TreeSelectedText: | 188 case kColorId_TreeSelectedText: |
| 195 case kColorId_TreeSelectedTextUnfocused: | 189 case kColorId_TreeSelectedTextUnfocused: |
| 196 return kTreeSelectedTextColor; | 190 return kTreeSelectedTextColor; |
| 197 case kColorId_TreeSelectionBackgroundFocused: | 191 case kColorId_TreeSelectionBackgroundFocused: |
| 198 case kColorId_TreeSelectionBackgroundUnfocused: | 192 case kColorId_TreeSelectionBackgroundUnfocused: |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 return kMenuBackgroundColor; | 243 return kMenuBackgroundColor; |
| 250 case kColorId_MenuBorderColor: | 244 case kColorId_MenuBorderColor: |
| 251 NOTREACHED(); | 245 NOTREACHED(); |
| 252 break; | 246 break; |
| 253 } | 247 } |
| 254 | 248 |
| 255 return kInvalidColorIdColor; | 249 return kInvalidColorIdColor; |
| 256 } | 250 } |
| 257 | 251 |
| 258 } // namespace ui | 252 } // namespace ui |
| OLD | NEW |