Use a background for the main search box in the experimental app list.
[chromium-blink-merge.git] / ui / app_list / app_list_constants.cc
blob08559ad636c05e93da17d7678537b4797f274330
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 // The color of the separator used inside dialogs in the app list.
16 const SkColor kDialogSeparatorColor = SkColorSetRGB(0xD1, 0xD1, 0xD1);
18 // 6% black over kContentsBackgroundColor
19 const SkColor kHighlightedColor = SkColorSetRGB(0xE6, 0xE6, 0xE6);
20 // 10% black over kContentsBackgroundColor
21 const SkColor kSelectedColor = SkColorSetRGB(0xF1, 0xF1, 0xF1);
23 const SkColor kPagerHoverColor = SkColorSetRGB(0xB4, 0xB4, 0xB4);
24 const SkColor kPagerNormalColor = SkColorSetRGB(0xE2, 0xE2, 0xE2);
25 const SkColor kPagerSelectedColor = SkColorSetRGB(0x46, 0x8F, 0xFC);
27 const SkColor kResultBorderColor = SkColorSetRGB(0xE5, 0xE5, 0xE5);
28 const SkColor kResultDefaultTextColor = SkColorSetRGB(0x33, 0x33, 0x33);
29 const SkColor kResultDimmedTextColor = SkColorSetRGB(0x96, 0x96, 0x96);
30 const SkColor kResultURLTextColor = SkColorSetRGB(0x00, 0x99, 0x33);
32 const SkColor kGridTitleColor = SkColorSetRGB(0x5A, 0x5A, 0x5A);
33 const SkColor kGridTitleHoverColor = SkColorSetRGB(0x3C, 0x3C, 0x3C);
35 // Color of the folder ink bubble.
36 const SkColor kFolderBubbleColor = SkColorSetRGB(0xD7, 0xD7, 0xD7);
38 // Duration in milliseconds for page transition.
39 const int kPageTransitionDurationInMs = 180;
41 // Duration in milliseconds for over scroll page transition.
42 const int kOverscrollPageTransitionDurationMs = 50;
44 // Duration in milliseconds for fading in the target page when opening
45 // or closing a folder, and the duration for the top folder icon animation
46 // for flying in or out the folder.
47 const int kFolderTransitionInDurationMs = 400;
49 // Duration in milliseconds for fading out the old page when opening or closing
50 // a folder.
51 const int kFolderTransitionOutDurationMs = 30;
53 // Animation curve used for fading in the target page when opening or closing
54 // a folder.
55 const gfx::Tween::Type kFolderFadeInTweenType = gfx::Tween::EASE_IN_2;
57 // Animation curve used for fading out the target page when opening or closing
58 // a folder.
59 const gfx::Tween::Type kFolderFadeOutTweenType = gfx::Tween::FAST_OUT_LINEAR_IN;
61 // Preferred number of columns and rows in apps grid.
62 const int kPreferredCols = 4;
63 const int kPreferredRows = 4;
64 const int kGridIconDimension = 48;
66 // Preferred search result icon sizes.
67 const int kListIconSize = 32;
68 const int kTileIconSize = 48;
70 // Preferred number of columns and rows in the experimental app list apps grid.
71 const int kExperimentalPreferredCols = 6;
72 const int kExperimentalPreferredRows = 3;
74 // Radius of the circle, in which if entered, show re-order preview.
75 const int kReorderDroppingCircleRadius = 35;
77 // Height of separator between the main view and contents switcher and of
78 // the launcher page indicator.
79 const int kContentsSwitcherSeparatorHeight = 1;
81 // Max items allowed in a folder.
82 size_t kMaxFolderItems = 16;
84 // Number of the top items in a folder, which are shown inside the folder icon
85 // and animated when opening and closing a folder.
86 const size_t kNumFolderTopItems = 4;
88 // Maximum length of the folder name in chars.
89 const size_t kMaxFolderNameChars = 40;
91 // Font style for app item labels.
92 const ui::ResourceBundle::FontStyle kItemTextFontStyle =
93 ui::ResourceBundle::SmallBoldFont;
95 #if defined(OS_LINUX)
96 #if defined(GOOGLE_CHROME_BUILD)
97 const char kAppListWMClass[] = "chrome_app_list";
98 #else // CHROMIUM_BUILD
99 const char kAppListWMClass[] = "chromium_app_list";
100 #endif
101 #endif
103 } // namespace app_list