OLD | NEW |
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 { |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 const char kAppListWMClass[] = "chromium_app_list"; | 147 const char kAppListWMClass[] = "chromium_app_list"; |
148 #endif | 148 #endif |
149 #endif | 149 #endif |
150 | 150 |
151 gfx::ShadowValue GetShadowForZHeight(int z_height) { | 151 gfx::ShadowValue GetShadowForZHeight(int z_height) { |
152 if (z_height <= 0) | 152 if (z_height <= 0) |
153 return gfx::ShadowValue(); | 153 return gfx::ShadowValue(); |
154 | 154 |
155 switch (z_height) { | 155 switch (z_height) { |
156 case 1: | 156 case 1: |
157 return gfx::ShadowValue(gfx::Vector2d(0, 1), 2, | 157 return gfx::ShadowValue(gfx::Vector2d(0, 1), 4, |
158 SkColorSetARGB(0x4C, 0, 0, 0)); | 158 SkColorSetARGB(0x4C, 0, 0, 0)); |
159 case 2: | 159 case 2: |
160 return gfx::ShadowValue(gfx::Vector2d(0, 2), 4, | 160 return gfx::ShadowValue(gfx::Vector2d(0, 2), 8, |
161 SkColorSetARGB(0x33, 0, 0, 0)); | 161 SkColorSetARGB(0x33, 0, 0, 0)); |
162 default: | 162 default: |
163 return gfx::ShadowValue(gfx::Vector2d(0, 8), 12, | 163 return gfx::ShadowValue(gfx::Vector2d(0, 8), 24, |
164 SkColorSetARGB(0x3F, 0, 0, 0)); | 164 SkColorSetARGB(0x3F, 0, 0, 0)); |
165 } | 165 } |
166 } | 166 } |
167 | 167 |
168 const gfx::ShadowValues& IconStartShadows() { | 168 const gfx::ShadowValues& IconStartShadows() { |
169 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, | 169 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, |
170 (1, gfx::ShadowValue(gfx::Vector2d(0, 1), 2, | 170 (1, gfx::ShadowValue(gfx::Vector2d(0, 1), 4, |
171 SkColorSetARGB(0x33, 0, 0, 0)))); | 171 SkColorSetARGB(0x33, 0, 0, 0)))); |
172 return icon_shadows; | 172 return icon_shadows; |
173 } | 173 } |
174 | 174 |
175 const gfx::ShadowValues& IconEndShadows() { | 175 const gfx::ShadowValues& IconEndShadows() { |
176 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, | 176 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, |
177 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 4, | 177 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 8, |
178 SkColorSetARGB(0x50, 0, 0, 0)))); | 178 SkColorSetARGB(0x50, 0, 0, 0)))); |
179 return icon_shadows; | 179 return icon_shadows; |
180 } | 180 } |
181 | 181 |
182 } // namespace app_list | 182 } // namespace app_list |
OLD | NEW |