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"
9 const SkColor kContentsBackgroundColor
= SkColorSetRGB(0xFA, 0xFA, 0xFA);
10 const SkColor kSearchBoxBackground
= SK_ColorWHITE
;
12 // In Windows, transparent background color will cause ugly text rendering,
13 // therefore kContentsBackgroundColor should be used. See crbug.com/406989
14 #if defined(OS_CHROMEOS)
15 const SkColor kLabelBackgroundColor
= SK_ColorTRANSPARENT
;
17 const SkColor kLabelBackgroundColor
= kContentsBackgroundColor
;
20 const SkColor kTopSeparatorColor
= SkColorSetRGB(0xC0, 0xC0, 0xC0);
21 const SkColor kBottomSeparatorColor
= SkColorSetRGB(0xC0, 0xC0, 0xC0);
23 // The color of the separator used inside dialogs in the app list.
24 const SkColor kDialogSeparatorColor
= SkColorSetRGB(0xD1, 0xD1, 0xD1);
26 // 6% black over kContentsBackgroundColor
27 const SkColor kHighlightedColor
= SkColorSetRGB(0xEB, 0xEB, 0xEB);
28 // 10% black over kContentsBackgroundColor
29 const SkColor kSelectedColor
= SkColorSetRGB(0xE1, 0xE1, 0xE1);
31 const SkColor kPagerHoverColor
= SkColorSetRGB(0xB4, 0xB4, 0xB4);
32 const SkColor kPagerNormalColor
= SkColorSetRGB(0xE2, 0xE2, 0xE2);
33 const SkColor kPagerSelectedColor
= SkColorSetRGB(0x46, 0x8F, 0xFC);
35 const SkColor kResultBorderColor
= SkColorSetRGB(0xE5, 0xE5, 0xE5);
36 const SkColor kResultDefaultTextColor
= SkColorSetRGB(0x33, 0x33, 0x33);
37 const SkColor kResultDimmedTextColor
= SkColorSetRGB(0x96, 0x96, 0x96);
38 const SkColor kResultURLTextColor
= SkColorSetRGB(0x00, 0x99, 0x33);
40 const SkColor kGridTitleColor
= SkColorSetRGB(0x33, 0x33, 0x33);
41 const SkColor kGridTitleHoverColor
= kGridTitleColor
;
43 const SkColor kFolderTitleColor
= SkColorSetRGB(0x33, 0x33, 0x33);
44 const SkColor kFolderTitleHintTextColor
= SkColorSetRGB(0xA0, 0xA0, 0xA0);
45 // Color of the folder ink bubble.
46 const SkColor kFolderBubbleColor
= SkColorSetRGB(0xD7, 0xD7, 0xD7);
48 // Duration in milliseconds for page transition.
49 const int kPageTransitionDurationInMs
= 180;
51 // Duration in milliseconds for over scroll page transition.
52 const int kOverscrollPageTransitionDurationMs
= 50;
54 // Duration in milliseconds for fading in the target page when opening
55 // or closing a folder, and the duration for the top folder icon animation
56 // for flying in or out the folder.
57 const int kFolderTransitionInDurationMs
= 400;
59 // Duration in milliseconds for fading out the old page when opening or closing
61 const int kFolderTransitionOutDurationMs
= 30;
63 // Animation curve used for fading in the target page when opening or closing
65 const gfx::Tween::Type kFolderFadeInTweenType
= gfx::Tween::EASE_IN_2
;
67 // Animation curve used for fading out the target page when opening or closing
69 const gfx::Tween::Type kFolderFadeOutTweenType
= gfx::Tween::FAST_OUT_LINEAR_IN
;
71 // Preferred number of columns and rows in apps grid.
72 const int kPreferredCols
= 4;
73 const int kPreferredRows
= 4;
74 const int kGridIconDimension
= 48;
76 // Preferred search result icon sizes.
77 const int kListIconSize
= 32;
78 const int kTileIconSize
= 48;
80 // Preferred number of columns and rows in the centered app list apps grid.
81 const int kCenteredPreferredCols
= 6;
82 const int kCenteredPreferredRows
= 3;
84 // Preferred number of columns and rows in the experimental app list apps grid.
85 const int kExperimentalPreferredCols
= 6;
86 const int kExperimentalPreferredRows
= 4;
88 // Radius of the circle, in which if entered, show re-order preview.
89 const int kReorderDroppingCircleRadius
= 35;
91 // The padding around the outside of the experimental app list (top and sides).
92 const int kExperimentalWindowPadding
= 24;
94 // Max items allowed in a folder.
95 size_t kMaxFolderItems
= 16;
97 // Number of the top items in a folder, which are shown inside the folder icon
98 // and animated when opening and closing a folder.
99 const size_t kNumFolderTopItems
= 4;
101 // Maximum length of the folder name in chars.
102 const size_t kMaxFolderNameChars
= 40;
104 // Font style for app item labels.
105 const ui::ResourceBundle::FontStyle kItemTextFontStyle
=
106 ui::ResourceBundle::SmallBoldFont
;
108 #if defined(OS_LINUX)
109 #if defined(GOOGLE_CHROME_BUILD)
110 const char kAppListWMClass
[] = "chrome_app_list";
111 #else // CHROMIUM_BUILD
112 const char kAppListWMClass
[] = "chromium_app_list";
116 } // namespace app_list