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 | 39 // Duration in milliseconds for fading in the target page when opening |
40 // closing a folder. | 40 // or closing a folder, and the duration for the top folder icon animation |
41 const int kFolderTransitionInDurationMs = 200; | 41 // for flying in or out the folder. |
| 42 const int kFolderTransitionInDurationMs = 400; |
42 | 43 |
43 // Duration in milliseconds for fading out the old page when opening or | 44 // Duration in milliseconds for fading out the old page when opening or closing |
44 // closing a folder. | 45 // a folder. |
45 const int kFolderTransitionOutDurationMs = 30; | 46 const int kFolderTransitionOutDurationMs = 30; |
46 | 47 |
| 48 // Animation curve used for fading in the target page when opening or closing |
| 49 // a folder. |
| 50 const gfx::Tween::Type kFolderFadeInTweenType = gfx::Tween::EASE_IN_2; |
| 51 |
| 52 // Animation curve used for fading out the target page when opening or closing |
| 53 // a folder. |
| 54 const gfx::Tween::Type kFolderFadeOutTweenType = gfx::Tween::EASE_IN_3; |
| 55 |
47 // Preferred number of columns and rows in apps grid. | 56 // Preferred number of columns and rows in apps grid. |
48 const int kPreferredCols = 4; | 57 const int kPreferredCols = 4; |
49 const int kPreferredRows = 4; | 58 const int kPreferredRows = 4; |
50 const int kPreferredIconDimension = 48; | 59 const int kPreferredIconDimension = 48; |
51 | 60 |
52 // Number of the top items in a folder, which are shown inside the folder icon | 61 // Number of the top items in a folder, which are shown inside the folder icon |
53 // and animated when opening and closing a folder. | 62 // and animated when opening and closing a folder. |
54 const size_t kNumFolderTopItems = 4; | 63 const size_t kNumFolderTopItems = 4; |
55 | 64 |
56 // Font style for app item labels. | 65 // Font style for app item labels. |
57 const ui::ResourceBundle::FontStyle kItemTextFontStyle = | 66 const ui::ResourceBundle::FontStyle kItemTextFontStyle = |
58 ui::ResourceBundle::SmallBoldFont; | 67 ui::ResourceBundle::SmallBoldFont; |
59 | 68 |
60 #if defined(OS_LINUX) | 69 #if defined(OS_LINUX) |
61 #if defined(GOOGLE_CHROME_BUILD) | 70 #if defined(GOOGLE_CHROME_BUILD) |
62 const char kAppListWMClass[] = "chrome_app_list"; | 71 const char kAppListWMClass[] = "chrome_app_list"; |
63 #else // CHROMIUM_BUILD | 72 #else // CHROMIUM_BUILD |
64 const char kAppListWMClass[] = "chromium_app_list"; | 73 const char kAppListWMClass[] = "chromium_app_list"; |
65 #endif | 74 #endif |
66 #endif | 75 #endif |
67 | 76 |
68 } // namespace app_list | 77 } // namespace app_list |
OLD | NEW |