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

Side by Side Diff: ui/native_theme/fallback_theme.cc

Issue 258713002: Linux Aura: get tooltip background color from theme (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc ('k') | ui/native_theme/native_theme.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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;
67 // Tree 69 // Tree
68 static const SkColor kTreeBackground = SK_ColorWHITE; 70 static const SkColor kTreeBackground = SK_ColorWHITE;
69 static const SkColor kTreeTextColor = SK_ColorBLACK; 71 static const SkColor kTreeTextColor = SK_ColorBLACK;
70 static const SkColor kTreeSelectedTextColor = SK_ColorBLACK; 72 static const SkColor kTreeSelectedTextColor = SK_ColorBLACK;
71 static const SkColor kTreeSelectionBackgroundColor = 73 static const SkColor kTreeSelectionBackgroundColor =
72 SkColorSetRGB(0xEE, 0xEE, 0xEE); 74 SkColorSetRGB(0xEE, 0xEE, 0xEE);
73 static const SkColor kTreeArrowColor = SkColorSetRGB(0x7A, 0x7A, 0x7A); 75 static const SkColor kTreeArrowColor = SkColorSetRGB(0x7A, 0x7A, 0x7A);
74 // Table 76 // Table
75 static const SkColor kTableBackground = SK_ColorWHITE; 77 static const SkColor kTableBackground = SK_ColorWHITE;
76 static const SkColor kTableTextColor = SK_ColorBLACK; 78 static const SkColor kTableTextColor = SK_ColorBLACK;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 return kTextfieldDefaultBackground; 175 return kTextfieldDefaultBackground;
174 case kColorId_TextfieldReadOnlyColor: 176 case kColorId_TextfieldReadOnlyColor:
175 return kTextfieldReadOnlyColor; 177 return kTextfieldReadOnlyColor;
176 case kColorId_TextfieldReadOnlyBackground: 178 case kColorId_TextfieldReadOnlyBackground:
177 return kTextfieldReadOnlyBackground; 179 return kTextfieldReadOnlyBackground;
178 case kColorId_TextfieldSelectionColor: 180 case kColorId_TextfieldSelectionColor:
179 return kTextfieldSelectionColor; 181 return kTextfieldSelectionColor;
180 case kColorId_TextfieldSelectionBackgroundFocused: 182 case kColorId_TextfieldSelectionBackgroundFocused:
181 return kTextfieldSelectionBackgroundFocused; 183 return kTextfieldSelectionBackgroundFocused;
182 184
185 // Tooltip
186 case kColorId_TooltipBackground:
187 return kTooltipBackground;
188
183 // Tree 189 // Tree
184 case kColorId_TreeBackground: 190 case kColorId_TreeBackground:
185 return kTreeBackground; 191 return kTreeBackground;
186 case kColorId_TreeText: 192 case kColorId_TreeText:
187 return kTreeTextColor; 193 return kTreeTextColor;
188 case kColorId_TreeSelectedText: 194 case kColorId_TreeSelectedText:
189 case kColorId_TreeSelectedTextUnfocused: 195 case kColorId_TreeSelectedTextUnfocused:
190 return kTreeSelectedTextColor; 196 return kTreeSelectedTextColor;
191 case kColorId_TreeSelectionBackgroundFocused: 197 case kColorId_TreeSelectionBackgroundFocused:
192 case kColorId_TreeSelectionBackgroundUnfocused: 198 case kColorId_TreeSelectionBackgroundUnfocused:
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 return kMenuBackgroundColor; 249 return kMenuBackgroundColor;
244 case kColorId_MenuBorderColor: 250 case kColorId_MenuBorderColor:
245 NOTREACHED(); 251 NOTREACHED();
246 break; 252 break;
247 } 253 }
248 254
249 return kInvalidColorIdColor; 255 return kInvalidColorIdColor;
250 } 256 }
251 257
252 } // namespace ui 258 } // namespace ui
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc ('k') | ui/native_theme/native_theme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698