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/app_list/app_list_constants.cc

Issue 1154323002: Use app list item shadow for app list folders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_arrow_keys_crash
Patch Set: fix mac compile Created 5 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
« no previous file with comments | « ui/app_list/app_list_constants.h ('k') | ui/app_list/app_list_folder_item.cc » ('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/app_list/app_list_constants.h" 5 #include "ui/app_list/app_list_constants.h"
6 6
7 namespace app_list { 7 namespace app_list {
8 8
9 const SkColor kContentsBackgroundColor = SkColorSetRGB(0xF2, 0xF2, 0xF2); 9 const SkColor kContentsBackgroundColor = SkColorSetRGB(0xF2, 0xF2, 0xF2);
10 const SkColor kSearchBoxBackground = SK_ColorWHITE; 10 const SkColor kSearchBoxBackground = SK_ColorWHITE;
(...skipping 30 matching lines...) Expand all
41 41
42 const SkColor kGridTitleColor = SkColorSetRGB(0x33, 0x33, 0x33); 42 const SkColor kGridTitleColor = SkColorSetRGB(0x33, 0x33, 0x33);
43 43
44 const SkColor kFolderTitleColor = SkColorSetRGB(0x33, 0x33, 0x33); 44 const SkColor kFolderTitleColor = SkColorSetRGB(0x33, 0x33, 0x33);
45 const SkColor kFolderTitleHintTextColor = SkColorSetRGB(0xA0, 0xA0, 0xA0); 45 const SkColor kFolderTitleHintTextColor = SkColorSetRGB(0xA0, 0xA0, 0xA0);
46 // Color of the folder ink bubble. 46 // Color of the folder ink bubble.
47 const SkColor kFolderBubbleColor = SK_ColorWHITE; 47 const SkColor kFolderBubbleColor = SK_ColorWHITE;
48 // Color of the folder bubble shadow. 48 // Color of the folder bubble shadow.
49 const SkColor kFolderShadowColor = SkColorSetRGB(0xBF, 0xBF, 0xBF); 49 const SkColor kFolderShadowColor = SkColorSetRGB(0xBF, 0xBF, 0xBF);
50 const float kFolderBubbleRadius = 23; 50 const float kFolderBubbleRadius = 23;
51 const float kFolderShadowRadius = 23.5; 51 const float kFolderBubbleOffsetY = 1;
52 const float kFolderShadowOffsetY = 1;
53 52
54 const SkColor kCardBackgroundColor = SK_ColorWHITE; 53 const SkColor kCardBackgroundColor = SK_ColorWHITE;
55 54
56 // Duration in milliseconds for page transition. 55 // Duration in milliseconds for page transition.
57 const int kPageTransitionDurationInMs = 180; 56 const int kPageTransitionDurationInMs = 180;
58 57
59 // Duration in milliseconds for over scroll page transition. 58 // Duration in milliseconds for over scroll page transition.
60 const int kOverscrollPageTransitionDurationMs = 50; 59 const int kOverscrollPageTransitionDurationMs = 50;
61 60
62 // Duration in milliseconds for fading in the target page when opening 61 // Duration in milliseconds for fading in the target page when opening
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 return gfx::ShadowValue(gfx::Vector2d(0, 2), 4, 156 return gfx::ShadowValue(gfx::Vector2d(0, 2), 4,
158 SkColorSetARGB(0x33, 0, 0, 0)); 157 SkColorSetARGB(0x33, 0, 0, 0));
159 default: 158 default:
160 return gfx::ShadowValue(gfx::Vector2d(0, 8), 12, 159 return gfx::ShadowValue(gfx::Vector2d(0, 8), 12,
161 SkColorSetARGB(0x3F, 0, 0, 0)); 160 SkColorSetARGB(0x3F, 0, 0, 0));
162 } 161 }
163 } 162 }
164 163
165 const gfx::ShadowValues& IconStartShadows() { 164 const gfx::ShadowValues& IconStartShadows() {
166 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, 165 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows,
167 (1, gfx::ShadowValue(gfx::Vector2d(0, 2), 2, 166 (1, gfx::ShadowValue(gfx::Vector2d(0, 1), 2,
168 SkColorSetARGB(0x24, 0, 0, 0)))); 167 SkColorSetARGB(0x33, 0, 0, 0))));
169 return icon_shadows; 168 return icon_shadows;
170 } 169 }
171 170
172 const gfx::ShadowValues& IconEndShadows() { 171 const gfx::ShadowValues& IconEndShadows() {
173 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, 172 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows,
174 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 4, 173 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 4,
175 SkColorSetARGB(0x50, 0, 0, 0)))); 174 SkColorSetARGB(0x50, 0, 0, 0))));
176 return icon_shadows; 175 return icon_shadows;
177 } 176 }
178 177
179 } // namespace app_list 178 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/app_list_constants.h ('k') | ui/app_list/app_list_folder_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698