| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // Animation curve used for fading in the target page when opening or closing | 76 // Animation curve used for fading in the target page when opening or closing |
| 77 // a folder. | 77 // a folder. |
| 78 const gfx::Tween::Type kFolderFadeInTweenType = gfx::Tween::EASE_IN_2; | 78 const gfx::Tween::Type kFolderFadeInTweenType = gfx::Tween::EASE_IN_2; |
| 79 | 79 |
| 80 // Animation curve used for fading out the target page when opening or closing | 80 // Animation curve used for fading out the target page when opening or closing |
| 81 // a folder. | 81 // a folder. |
| 82 const gfx::Tween::Type kFolderFadeOutTweenType = gfx::Tween::FAST_OUT_LINEAR_IN; | 82 const gfx::Tween::Type kFolderFadeOutTweenType = gfx::Tween::FAST_OUT_LINEAR_IN; |
| 83 | 83 |
| 84 // Preferred number of columns and rows in apps grid. | 84 // Preferred number of columns and rows in apps grid. |
| 85 const int kPreferredCols = 4; | 85 const int kPreferredCols = 4; |
| 86 #if defined(OS_CHROMEOS) |
| 86 const int kPreferredRows = 4; | 87 const int kPreferredRows = 4; |
| 88 #else |
| 89 const int kPreferredRows = 3; |
| 90 #endif // defined(OS_CHROMEOS) |
| 87 const int kGridIconDimension = 48; | 91 const int kGridIconDimension = 48; |
| 88 | 92 |
| 89 // Preferred search result icon sizes. | 93 // Preferred search result icon sizes. |
| 90 const int kListIconSize = 24; | 94 const int kListIconSize = 24; |
| 91 const int kListBadgeIconSize = 16; | 95 const int kListBadgeIconSize = 16; |
| 92 const int kListBadgeIconOffsetX = 6; | 96 const int kListBadgeIconOffsetX = 6; |
| 93 const int kListBadgeIconOffsetY = 6; | 97 const int kListBadgeIconOffsetY = 6; |
| 94 const int kTileIconSize = 48; | 98 const int kTileIconSize = 48; |
| 95 | 99 |
| 96 const SkColor kIconColor = gfx::kChromeIconGrey; | 100 const SkColor kIconColor = gfx::kChromeIconGrey; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 } | 181 } |
| 178 | 182 |
| 179 const gfx::ShadowValues& IconEndShadows() { | 183 const gfx::ShadowValues& IconEndShadows() { |
| 180 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, | 184 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, |
| 181 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 4, | 185 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 4, |
| 182 SkColorSetARGB(0x50, 0, 0, 0)))); | 186 SkColorSetARGB(0x50, 0, 0, 0)))); |
| 183 return icon_shadows; | 187 return icon_shadows; |
| 184 } | 188 } |
| 185 | 189 |
| 186 } // namespace app_list | 190 } // namespace app_list |
| OLD | NEW |