| 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 | 75 |
| 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 = 6; |
| 86 const int kPreferredRows = 4; | 86 const int kPreferredRows = 4; |
| 87 const int kGridIconDimension = 48; | 87 const int kGridIconDimension = 48; |
| 88 | 88 |
| 89 // Preferred search result icon sizes. | 89 // Preferred search result icon sizes. |
| 90 const int kListIconSize = 24; | 90 const int kListIconSize = 24; |
| 91 const int kListBadgeIconSize = 16; | 91 const int kListBadgeIconSize = 16; |
| 92 const int kListBadgeIconOffsetX = 6; | 92 const int kListBadgeIconOffsetX = 6; |
| 93 const int kListBadgeIconOffsetY = 6; | 93 const int kListBadgeIconOffsetY = 6; |
| 94 const int kTileIconSize = 48; | 94 const int kTileIconSize = 48; |
| 95 | 95 |
| 96 const SkColor kIconColor = gfx::kChromeIconGrey; | 96 const SkColor kIconColor = gfx::kChromeIconGrey; |
| 97 | 97 |
| 98 // Preferred number of columns and rows in the centered app list apps grid. | |
| 99 const int kCenteredPreferredCols = 6; | |
| 100 const int kCenteredPreferredRows = 3; | |
| 101 | |
| 102 // Preferred number of columns and rows in the experimental app list apps grid. | |
| 103 const int kExperimentalPreferredCols = 6; | |
| 104 const int kExperimentalPreferredRows = 4; | |
| 105 | |
| 106 // The number of apps shown in the start page app grid. | 98 // The number of apps shown in the start page app grid. |
| 107 const size_t kNumStartPageTiles = 9; | 99 const size_t kNumStartPageTiles = 9; |
| 108 | 100 |
| 109 // Maximum number of results to show in the launcher Search UI. | 101 // Maximum number of results to show in the launcher Search UI. |
| 110 const size_t kMaxSearchResults = 6; | 102 const size_t kMaxSearchResults = 6; |
| 111 | 103 |
| 112 // Radius of the circle, in which if entered, show re-order preview. | 104 // Radius of the circle, in which if entered, show re-order preview. |
| 113 const int kReorderDroppingCircleRadius = 35; | 105 const int kReorderDroppingCircleRadius = 35; |
| 114 | 106 |
| 115 // The padding around the outside of the experimental app list apps grid | 107 // The padding around the outside of the apps grid (sides). |
| 116 // (sides). | 108 const int kAppsGridPadding = 24; |
| 117 const int kExperimentalAppsGridPadding = 24; | |
| 118 | 109 |
| 119 // The padding around the outside of the experimental app list search box (top | 110 // The padding around the outside of the search box (top and sides). |
| 120 // and sides). | 111 const int kSearchBoxPadding = 16; |
| 121 const int kExperimentalSearchBoxPadding = 16; | |
| 122 | 112 |
| 123 // Max items allowed in a folder. | 113 // Max items allowed in a folder. |
| 124 size_t kMaxFolderItems = 16; | 114 size_t kMaxFolderItems = 16; |
| 125 | 115 |
| 126 // Number of the top items in a folder, which are shown inside the folder icon | 116 // Number of the top items in a folder, which are shown inside the folder icon |
| 127 // and animated when opening and closing a folder. | 117 // and animated when opening and closing a folder. |
| 128 const size_t kNumFolderTopItems = 4; | 118 const size_t kNumFolderTopItems = 4; |
| 129 | 119 |
| 130 // Maximum length of the folder name in chars. | 120 // Maximum length of the folder name in chars. |
| 131 const size_t kMaxFolderNameChars = 80; | 121 const size_t kMaxFolderNameChars = 80; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 } | 173 } |
| 184 | 174 |
| 185 const gfx::ShadowValues& IconEndShadows() { | 175 const gfx::ShadowValues& IconEndShadows() { |
| 186 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, | 176 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, |
| 187 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 4, | 177 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 4, |
| 188 SkColorSetARGB(0x50, 0, 0, 0)))); | 178 SkColorSetARGB(0x50, 0, 0, 0)))); |
| 189 return icon_shadows; | 179 return icon_shadows; |
| 190 } | 180 } |
| 191 | 181 |
| 192 } // namespace app_list | 182 } // namespace app_list |
| OLD | NEW |