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 namespace app_list { | 7 namespace app_list { |
8 | 8 |
9 const SkColor kContentsBackgroundColor = SkColorSetRGB(0xFB, 0xFB, 0xFB); | 9 const SkColor kContentsBackgroundColor = SkColorSetRGB(0xFB, 0xFB, 0xFB); |
10 const SkColor kSearchBoxBackground = SK_ColorWHITE; | 10 const SkColor kSearchBoxBackground = SK_ColorWHITE; |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 // Color of the folder ink bubble. | 30 // Color of the folder ink bubble. |
31 const SkColor kFolderBubbleColor = SkColorSetRGB(0xD7, 0xD7, 0xD7); | 31 const SkColor kFolderBubbleColor = SkColorSetRGB(0xD7, 0xD7, 0xD7); |
32 | 32 |
33 // Duration in milliseconds for page transition. | 33 // Duration in milliseconds for page transition. |
34 const int kPageTransitionDurationInMs = 180; | 34 const int kPageTransitionDurationInMs = 180; |
35 | 35 |
36 // Duration in milliseconds for over scroll page transition. | 36 // Duration in milliseconds for over scroll page transition. |
37 const int kOverscrollPageTransitionDurationMs = 50; | 37 const int kOverscrollPageTransitionDurationMs = 50; |
38 | 38 |
| 39 // Duration in milliseconds for the target page transition when opening or |
| 40 // closing a folder. |
| 41 const int kFolderTransitionInDurationMs = 200; |
| 42 |
| 43 // Duration in milliseconds for fading out the old page when opening or |
| 44 // closing a folder. |
| 45 const int kFolderTransitionOutDurationMs = 30; |
| 46 |
39 // Preferred number of columns and rows in apps grid. | 47 // Preferred number of columns and rows in apps grid. |
40 const int kPreferredCols = 4; | 48 const int kPreferredCols = 4; |
41 const int kPreferredRows = 4; | 49 const int kPreferredRows = 4; |
42 const int kPreferredIconDimension = 48; | 50 const int kPreferredIconDimension = 48; |
43 | 51 |
| 52 // Number of the top items in a folder, which are shown inside the folder icon |
| 53 // and animated when opening and closing a folder. |
| 54 const size_t kNumFolderTopItems = 4; |
| 55 |
44 // Font style for app item labels. | 56 // Font style for app item labels. |
45 const ui::ResourceBundle::FontStyle kItemTextFontStyle = | 57 const ui::ResourceBundle::FontStyle kItemTextFontStyle = |
46 ui::ResourceBundle::SmallBoldFont; | 58 ui::ResourceBundle::SmallBoldFont; |
47 | 59 |
48 } // namespace app_list | 60 } // namespace app_list |
OLD | NEW |