Blink roll 171798:171837
[chromium-blink-merge.git] / ui / app_list / app_list_constants.cc
blobefcf5a79882739c2251c4bbaaa3f4b4c60142c84
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
3 // found in the LICENSE file.
5 #include "ui/app_list/app_list_constants.h"
7 namespace app_list {
9 const SkColor kContentsBackgroundColor = SkColorSetRGB(0xFB, 0xFB, 0xFB);
10 const SkColor kContentsSwitcherBackgroundColor = SK_ColorWHITE;
11 const SkColor kSearchBoxBackground = SK_ColorWHITE;
12 const SkColor kTopSeparatorColor = SkColorSetRGB(0xE5, 0xE5, 0xE5);
13 const SkColor kBottomSeparatorColor = SkColorSetRGB(0xE5, 0xE5, 0xE5);
15 // 6% black over kContentsBackgroundColor
16 const SkColor kHighlightedColor = SkColorSetRGB(0xE6, 0xE6, 0xE6);
17 // 10% black over kContentsBackgroundColor
18 const SkColor kSelectedColor = SkColorSetRGB(0xF1, 0xF1, 0xF1);
20 const SkColor kPagerHoverColor = SkColorSetRGB(0xB4, 0xB4, 0xB4);
21 const SkColor kPagerNormalColor = SkColorSetRGB(0xE2, 0xE2, 0xE2);
22 const SkColor kPagerSelectedColor = SkColorSetRGB(0x46, 0x8F, 0xFC);
24 const SkColor kResultBorderColor = SkColorSetRGB(0xE5, 0xE5, 0xE5);
25 const SkColor kResultDefaultTextColor = SkColorSetRGB(0x33, 0x33, 0x33);
26 const SkColor kResultDimmedTextColor = SkColorSetRGB(0x96, 0x96, 0x96);
27 const SkColor kResultURLTextColor = SkColorSetRGB(0x00, 0x99, 0x33);
29 const SkColor kGridTitleColor = SkColorSetRGB(0x5A, 0x5A, 0x5A);
30 const SkColor kGridTitleHoverColor = SkColorSetRGB(0x3C, 0x3C, 0x3C);
32 // Color of the folder ink bubble.
33 const SkColor kFolderBubbleColor = SkColorSetRGB(0xD7, 0xD7, 0xD7);
35 // Duration in milliseconds for page transition.
36 const int kPageTransitionDurationInMs = 180;
38 // Duration in milliseconds for over scroll page transition.
39 const int kOverscrollPageTransitionDurationMs = 50;
41 // Duration in milliseconds for fading in the target page when opening
42 // or closing a folder, and the duration for the top folder icon animation
43 // for flying in or out the folder.
44 const int kFolderTransitionInDurationMs = 400;
46 // Duration in milliseconds for fading out the old page when opening or closing
47 // a folder.
48 const int kFolderTransitionOutDurationMs = 30;
50 // Animation curve used for fading in the target page when opening or closing
51 // a folder.
52 const gfx::Tween::Type kFolderFadeInTweenType = gfx::Tween::EASE_IN_2;
54 // Animation curve used for fading out the target page when opening or closing
55 // a folder.
56 const gfx::Tween::Type kFolderFadeOutTweenType = gfx::Tween::FAST_OUT_LINEAR_IN;
58 // Preferred number of columns and rows in apps grid.
59 const int kPreferredCols = 4;
60 const int kPreferredRows = 4;
61 const int kPreferredIconDimension = 48;
63 // Preferred number of columns and rows in the experimental app list apps grid.
64 const int kExperimentalPreferredCols = 6;
65 const int kExperimentalPreferredRows = 3;
67 // Radius of the circle, in which if entered, show re-order preview.
68 const int kReorderDroppingCircleRadius = 35;
70 // Max items allowed in a folder.
71 size_t kMaxFolderItems = 16;
73 // Number of the top items in a folder, which are shown inside the folder icon
74 // and animated when opening and closing a folder.
75 const size_t kNumFolderTopItems = 4;
77 // Maximum length of the folder name in chars.
78 const size_t kMaxFolderNameChars = 40;
80 // Font style for app item labels.
81 const ui::ResourceBundle::FontStyle kItemTextFontStyle =
82 ui::ResourceBundle::SmallBoldFont;
84 #if defined(OS_LINUX)
85 #if defined(GOOGLE_CHROME_BUILD)
86 const char kAppListWMClass[] = "chrome_app_list";
87 #else // CHROMIUM_BUILD
88 const char kAppListWMClass[] = "chromium_app_list";
89 #endif
90 #endif
92 } // namespace app_list