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

Side by Side Diff: ui/app_list/app_list_constants.cc

Issue 1747773002: Make the ENABLE_APP_LIST build flag work on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016 header Created 4 years, 9 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
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/app_list/app_list_constants.h" 5 #include "ui/app_list/app_list_constants.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "ui/gfx/color_palette.h" 8 #include "ui/gfx/color_palette.h"
9 9
10 namespace app_list { 10 namespace app_list {
11 11
12 const SkColor kContentsBackgroundColor = SkColorSetRGB(0xF2, 0xF2, 0xF2); 12 const SkColor kContentsBackgroundColor = SkColorSetRGB(0xF2, 0xF2, 0xF2);
13 const SkColor kSearchBoxBackground = SK_ColorWHITE; 13 const SkColor kSearchBoxBackground = SK_ColorWHITE;
14 14
15 const SkColor kSearchTextColor = SkColorSetRGB(0x33, 0x33, 0x33); 15 const SkColor kSearchTextColor = SkColorSetRGB(0x33, 0x33, 0x33);
16 16
17 // In Windows, transparent background color will cause ugly text rendering, 17 // In Windows, transparent background color will cause ugly text rendering,
18 // therefore kContentsBackgroundColor should be used. See crbug.com/406989 18 // therefore kContentsBackgroundColor should be used. See crbug.com/406989
19 #if defined(OS_CHROMEOS) 19 #if defined(OS_CHROMEOS)
20 const SkColor kLabelBackgroundColor = SK_ColorTRANSPARENT; 20 const SkColor kLabelBackgroundColor = SK_ColorTRANSPARENT;
21 #else 21 #else
22 const SkColor kLabelBackgroundColor = kContentsBackgroundColor; 22 const SkColor kLabelBackgroundColor = kContentsBackgroundColor;
23 #endif 23 #endif
24 24
25 const SkColor kTopSeparatorColor = SkColorSetRGB(0xC0, 0xC0, 0xC0); 25 const SkColor kTopSeparatorColor = SkColorSetRGB(0xC0, 0xC0, 0xC0);
26 const SkColor kBottomSeparatorColor = SkColorSetRGB(0xC0, 0xC0, 0xC0); 26 const SkColor kBottomSeparatorColor = SkColorSetRGB(0xC0, 0xC0, 0xC0);
27 27
28 // The color of the separator used inside dialogs in the app list.
29 const SkColor kDialogSeparatorColor = SkColorSetRGB(0xD1, 0xD1, 0xD1);
30
31 // The mouse hover colour (3% black). 28 // The mouse hover colour (3% black).
32 const SkColor kHighlightedColor = SkColorSetARGB(8, 0, 0, 0); 29 const SkColor kHighlightedColor = SkColorSetARGB(8, 0, 0, 0);
33 // The keyboard select colour (6% black). 30 // The keyboard select colour (6% black).
34 const SkColor kSelectedColor = SkColorSetARGB(15, 0, 0, 0); 31 const SkColor kSelectedColor = SkColorSetARGB(15, 0, 0, 0);
35 32
36 const SkColor kPagerHoverColor = SkColorSetRGB(0xB4, 0xB4, 0xB4); 33 const SkColor kPagerHoverColor = SkColorSetRGB(0xB4, 0xB4, 0xB4);
37 const SkColor kPagerNormalColor = SkColorSetRGB(0xE2, 0xE2, 0xE2); 34 const SkColor kPagerNormalColor = SkColorSetRGB(0xE2, 0xE2, 0xE2);
38 const SkColor kPagerSelectedColor = SkColorSetRGB(0x46, 0x8F, 0xFC); 35 const SkColor kPagerSelectedColor = SkColorSetRGB(0x46, 0x8F, 0xFC);
39 36
40 const SkColor kResultBorderColor = SkColorSetRGB(0xE5, 0xE5, 0xE5); 37 const SkColor kResultBorderColor = SkColorSetRGB(0xE5, 0xE5, 0xE5);
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 } 174 }
178 175
179 const gfx::ShadowValues& IconEndShadows() { 176 const gfx::ShadowValues& IconEndShadows() {
180 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, 177 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows,
181 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 4, 178 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 4,
182 SkColorSetARGB(0x50, 0, 0, 0)))); 179 SkColorSetARGB(0x50, 0, 0, 0))));
183 return icon_shadows; 180 return icon_shadows;
184 } 181 }
185 182
186 } // namespace app_list 183 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698