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

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

Issue 235833002: [Mac] Redesign the avatar bubble UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittest broken by rebase 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 | « ui/native_theme/common_theme.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 18 matching lines...) Expand all
29 static const SkColor kDialogBackgroundColor = SkColorSetRGB(251, 251, 251); 29 static const SkColor kDialogBackgroundColor = SkColorSetRGB(251, 251, 251);
30 // FocusableBorder: 30 // FocusableBorder:
31 static const SkColor kFocusedBorderColor = SkColorSetRGB(0x4D, 0x90, 0xFE); 31 static const SkColor kFocusedBorderColor = SkColorSetRGB(0x4D, 0x90, 0xFE);
32 static const SkColor kUnfocusedBorderColor = SkColorSetRGB(0xD9, 0xD9, 0xD9); 32 static const SkColor kUnfocusedBorderColor = SkColorSetRGB(0xD9, 0xD9, 0xD9);
33 // Button: 33 // Button:
34 static const SkColor kButtonBackgroundColor = SkColorSetRGB(0xDE, 0xDE, 0xDE); 34 static const SkColor kButtonBackgroundColor = SkColorSetRGB(0xDE, 0xDE, 0xDE);
35 static const SkColor kButtonEnabledColor = SkColorSetRGB(0x22, 0x22, 0x22); 35 static const SkColor kButtonEnabledColor = SkColorSetRGB(0x22, 0x22, 0x22);
36 static const SkColor kButtonDisabledColor = SkColorSetRGB(0x99, 0x99, 0x99); 36 static const SkColor kButtonDisabledColor = SkColorSetRGB(0x99, 0x99, 0x99);
37 static const SkColor kButtonHighlightColor = SkColorSetRGB(0, 0, 0); 37 static const SkColor kButtonHighlightColor = SkColorSetRGB(0, 0, 0);
38 static const SkColor kButtonHoverColor = kButtonEnabledColor; 38 static const SkColor kButtonHoverColor = kButtonEnabledColor;
39 static const SkColor kButtonHoverBackgroundColor =
40 SkColorSetRGB(0xEA, 0xEA, 0xEA);
39 // MenuItem: 41 // MenuItem:
40 static const SkColor kEnabledMenuItemForegroundColor = kButtonEnabledColor; 42 static const SkColor kEnabledMenuItemForegroundColor = kButtonEnabledColor;
41 static const SkColor kDisabledMenuItemForegroundColor = kButtonDisabledColor; 43 static const SkColor kDisabledMenuItemForegroundColor = kButtonDisabledColor;
42 static const SkColor kFocusedMenuItemBackgroundColor = 44 static const SkColor kFocusedMenuItemBackgroundColor =
43 SkColorSetRGB(0xF1, 0xF1, 0xF1); 45 SkColorSetRGB(0xF1, 0xF1, 0xF1);
44 static const SkColor kHoverMenuItemBackgroundColor = 46 static const SkColor kHoverMenuItemBackgroundColor =
45 SkColorSetARGB(204, 255, 255, 255); 47 SkColorSetARGB(204, 255, 255, 255);
46 static const SkColor kMenuSeparatorColor = SkColorSetRGB(0xED, 0xED, 0xED); 48 static const SkColor kMenuSeparatorColor = SkColorSetRGB(0xED, 0xED, 0xED);
47 static const SkColor kEnabledMenuButtonBorderColor = 49 static const SkColor kEnabledMenuButtonBorderColor =
48 SkColorSetARGB(36, 0, 0, 0); 50 SkColorSetARGB(36, 0, 0, 0);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 case kColorId_ButtonBackgroundColor: 130 case kColorId_ButtonBackgroundColor:
129 return kButtonBackgroundColor; 131 return kButtonBackgroundColor;
130 case kColorId_ButtonEnabledColor: 132 case kColorId_ButtonEnabledColor:
131 return kButtonEnabledColor; 133 return kButtonEnabledColor;
132 case kColorId_ButtonDisabledColor: 134 case kColorId_ButtonDisabledColor:
133 return kButtonDisabledColor; 135 return kButtonDisabledColor;
134 case kColorId_ButtonHighlightColor: 136 case kColorId_ButtonHighlightColor:
135 return kButtonHighlightColor; 137 return kButtonHighlightColor;
136 case kColorId_ButtonHoverColor: 138 case kColorId_ButtonHoverColor:
137 return kButtonHoverColor; 139 return kButtonHoverColor;
140 case kColorId_ButtonHoverBackgroundColor:
141 return kButtonHoverBackgroundColor;
138 142
139 // MenuItem 143 // MenuItem
140 case kColorId_EnabledMenuItemForegroundColor: 144 case kColorId_EnabledMenuItemForegroundColor:
141 return kEnabledMenuItemForegroundColor; 145 return kEnabledMenuItemForegroundColor;
142 case kColorId_DisabledMenuItemForegroundColor: 146 case kColorId_DisabledMenuItemForegroundColor:
143 return kDisabledMenuItemForegroundColor; 147 return kDisabledMenuItemForegroundColor;
144 case kColorId_DisabledEmphasizedMenuItemForegroundColor: 148 case kColorId_DisabledEmphasizedMenuItemForegroundColor:
145 return SK_ColorBLACK; 149 return SK_ColorBLACK;
146 case kColorId_SelectedMenuItemForegroundColor: 150 case kColorId_SelectedMenuItemForegroundColor:
147 return kEnabledMenuItemForegroundColor; 151 return kEnabledMenuItemForegroundColor;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 return kMenuBackgroundColor; 247 return kMenuBackgroundColor;
244 case kColorId_MenuBorderColor: 248 case kColorId_MenuBorderColor:
245 NOTREACHED(); 249 NOTREACHED();
246 break; 250 break;
247 } 251 }
248 252
249 return kInvalidColorIdColor; 253 return kInvalidColorIdColor;
250 } 254 }
251 255
252 } // namespace ui 256 } // namespace ui
OLDNEW
« no previous file with comments | « ui/native_theme/common_theme.cc ('k') | ui/native_theme/native_theme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698