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

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

Issue 288983010: fix text color of BlueButton on GTK-theme-mode Linux Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add colors to common theme Created 6 years, 6 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 20 matching lines...) Expand all
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 = 39 static const SkColor kButtonHoverBackgroundColor =
40 SkColorSetRGB(0xEA, 0xEA, 0xEA); 40 SkColorSetRGB(0xEA, 0xEA, 0xEA);
41 static const SkColor kBlueButtonEnabledColor = SK_ColorWHITE;
42 static const SkColor kBlueButtonDisabledColor = SK_ColorWHITE;
43 static const SkColor kBlueButtonHighlightColor = SK_ColorWHITE;
44 static const SkColor kBlueButtonHoverColor = SK_ColorWHITE;
41 // MenuItem: 45 // MenuItem:
42 static const SkColor kEnabledMenuItemForegroundColor = kButtonEnabledColor; 46 static const SkColor kEnabledMenuItemForegroundColor = kButtonEnabledColor;
43 static const SkColor kDisabledMenuItemForegroundColor = kButtonDisabledColor; 47 static const SkColor kDisabledMenuItemForegroundColor = kButtonDisabledColor;
44 static const SkColor kFocusedMenuItemBackgroundColor = 48 static const SkColor kFocusedMenuItemBackgroundColor =
45 SkColorSetRGB(0xF1, 0xF1, 0xF1); 49 SkColorSetRGB(0xF1, 0xF1, 0xF1);
46 static const SkColor kHoverMenuItemBackgroundColor = 50 static const SkColor kHoverMenuItemBackgroundColor =
47 SkColorSetARGB(204, 255, 255, 255); 51 SkColorSetARGB(204, 255, 255, 255);
48 static const SkColor kMenuSeparatorColor = SkColorSetRGB(0xED, 0xED, 0xED); 52 static const SkColor kMenuSeparatorColor = SkColorSetRGB(0xED, 0xED, 0xED);
49 static const SkColor kEnabledMenuButtonBorderColor = 53 static const SkColor kEnabledMenuButtonBorderColor =
50 SkColorSetARGB(36, 0, 0, 0); 54 SkColorSetARGB(36, 0, 0, 0);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 case kColorId_ButtonEnabledColor: 139 case kColorId_ButtonEnabledColor:
136 return kButtonEnabledColor; 140 return kButtonEnabledColor;
137 case kColorId_ButtonDisabledColor: 141 case kColorId_ButtonDisabledColor:
138 return kButtonDisabledColor; 142 return kButtonDisabledColor;
139 case kColorId_ButtonHighlightColor: 143 case kColorId_ButtonHighlightColor:
140 return kButtonHighlightColor; 144 return kButtonHighlightColor;
141 case kColorId_ButtonHoverColor: 145 case kColorId_ButtonHoverColor:
142 return kButtonHoverColor; 146 return kButtonHoverColor;
143 case kColorId_ButtonHoverBackgroundColor: 147 case kColorId_ButtonHoverBackgroundColor:
144 return kButtonHoverBackgroundColor; 148 return kButtonHoverBackgroundColor;
149 case kColorId_BlueButtonEnabledColor:
150 return kBlueButtonEnabledColor;
151 case kColorId_BlueButtonDisabledColor:
152 return kBlueButtonDisabledColor;
153 case kColorId_BlueButtonHighlightColor:
154 return kBlueButtonHighlightColor;
155 case kColorId_BlueButtonHoverColor:
156 return kBlueButtonHoverColor;
145 157
146 // MenuItem 158 // MenuItem
147 case kColorId_EnabledMenuItemForegroundColor: 159 case kColorId_EnabledMenuItemForegroundColor:
148 return kEnabledMenuItemForegroundColor; 160 return kEnabledMenuItemForegroundColor;
149 case kColorId_DisabledMenuItemForegroundColor: 161 case kColorId_DisabledMenuItemForegroundColor:
150 return kDisabledMenuItemForegroundColor; 162 return kDisabledMenuItemForegroundColor;
151 case kColorId_DisabledEmphasizedMenuItemForegroundColor: 163 case kColorId_DisabledEmphasizedMenuItemForegroundColor:
152 return SK_ColorBLACK; 164 return SK_ColorBLACK;
153 case kColorId_SelectedMenuItemForegroundColor: 165 case kColorId_SelectedMenuItemForegroundColor:
154 return kEnabledMenuItemForegroundColor; 166 return kEnabledMenuItemForegroundColor;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 return kMenuBackgroundColor; 268 return kMenuBackgroundColor;
257 case kColorId_MenuBorderColor: 269 case kColorId_MenuBorderColor:
258 NOTREACHED(); 270 NOTREACHED();
259 break; 271 break;
260 } 272 }
261 273
262 return kInvalidColorIdColor; 274 return kInvalidColorIdColor;
263 } 275 }
264 276
265 } // namespace ui 277 } // 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