| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // a folder. | 75 // a folder. |
| 76 const gfx::Tween::Type kFolderFadeOutTweenType = gfx::Tween::FAST_OUT_LINEAR_IN; | 76 const gfx::Tween::Type kFolderFadeOutTweenType = gfx::Tween::FAST_OUT_LINEAR_IN; |
| 77 | 77 |
| 78 // Preferred number of columns and rows in apps grid. | 78 // Preferred number of columns and rows in apps grid. |
| 79 const int kPreferredCols = 6; | 79 const int kPreferredCols = 6; |
| 80 const int kPreferredRows = 4; | 80 const int kPreferredRows = 4; |
| 81 const int kGridIconDimension = 48; | 81 const int kGridIconDimension = 48; |
| 82 | 82 |
| 83 // The preferred app badge icon size. | 83 // The preferred app badge icon size. |
| 84 const int kAppBadgeIconSize = 12; | 84 const int kAppBadgeIconSize = 12; |
| 85 // The preferred badge background(circle) radius. |
| 86 const int kBadgeBackgroundRadius = 10; |
| 85 | 87 |
| 86 // Preferred search result icon sizes. | 88 // Preferred search result icon sizes. |
| 87 const int kListIconSize = 24; | 89 const int kListIconSize = 24; |
| 88 const int kListBadgeIconSize = 16; | 90 const int kListBadgeIconSize = 16; |
| 89 const int kListBadgeIconOffsetX = 6; | 91 const int kListBadgeIconOffsetX = 6; |
| 90 const int kListBadgeIconOffsetY = 6; | 92 const int kListBadgeIconOffsetY = 6; |
| 91 const int kTileIconSize = 48; | 93 const int kTileIconSize = 48; |
| 92 | 94 |
| 93 const SkColor kIconColor = gfx::kChromeIconGrey; | 95 const SkColor kIconColor = gfx::kChromeIconGrey; |
| 94 | 96 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 } | 165 } |
| 164 | 166 |
| 165 const gfx::ShadowValues& IconEndShadows() { | 167 const gfx::ShadowValues& IconEndShadows() { |
| 166 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, | 168 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, |
| 167 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 8, | 169 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 8, |
| 168 SkColorSetARGB(0x50, 0, 0, 0)))); | 170 SkColorSetARGB(0x50, 0, 0, 0)))); |
| 169 return icon_shadows; | 171 return icon_shadows; |
| 170 } | 172 } |
| 171 | 173 |
| 172 } // namespace app_list | 174 } // namespace app_list |
| OLD | NEW |