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(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);
17 const SkColor kDialogSubtitleColor
= SkColorSetRGB(0x77, 0x77, 0x77);
19 // 6% black over kContentsBackgroundColor
20 const SkColor kHighlightedColor
= SkColorSetRGB(0xE6, 0xE6, 0xE6);
21 // 10% black over kContentsBackgroundColor
22 const SkColor kSelectedColor
= SkColorSetRGB(0xF1, 0xF1, 0xF1);
24 const SkColor kPagerHoverColor
= SkColorSetRGB(0xB4, 0xB4, 0xB4);
25 const SkColor kPagerNormalColor
= SkColorSetRGB(0xE2, 0xE2, 0xE2);
26 const SkColor kPagerSelectedColor
= SkColorSetRGB(0x46, 0x8F, 0xFC);
28 const SkColor kResultBorderColor
= SkColorSetRGB(0xE5, 0xE5, 0xE5);
29 const SkColor kResultDefaultTextColor
= SkColorSetRGB(0x33, 0x33, 0x33);
30 const SkColor kResultDimmedTextColor
= SkColorSetRGB(0x96, 0x96, 0x96);
31 const SkColor kResultURLTextColor
= SkColorSetRGB(0x00, 0x99, 0x33);
33 const SkColor kGridTitleColor
= SkColorSetRGB(0x5A, 0x5A, 0x5A);
34 const SkColor kGridTitleHoverColor
= SkColorSetRGB(0x3C, 0x3C, 0x3C);
36 // Color of the borders used in the experimental app list start page.
37 const SkColor kStartPageBorderColor
= SkColorSetRGB(0xEE, 0xEE, 0xEE);
39 // Color of the folder ink bubble.
40 const SkColor kFolderBubbleColor
= SkColorSetRGB(0xD7, 0xD7, 0xD7);
42 // Duration in milliseconds for page transition.
43 const int kPageTransitionDurationInMs
= 180;
45 // Duration in milliseconds for over scroll page transition.
46 const int kOverscrollPageTransitionDurationMs
= 50;
48 // Duration in milliseconds for fading in the target page when opening
49 // or closing a folder, and the duration for the top folder icon animation
50 // for flying in or out the folder.
51 const int kFolderTransitionInDurationMs
= 400;
53 // Duration in milliseconds for fading out the old page when opening or closing
55 const int kFolderTransitionOutDurationMs
= 30;
57 // Animation curve used for fading in the target page when opening or closing
59 const gfx::Tween::Type kFolderFadeInTweenType
= gfx::Tween::EASE_IN_2
;
61 // Animation curve used for fading out the target page when opening or closing
63 const gfx::Tween::Type kFolderFadeOutTweenType
= gfx::Tween::FAST_OUT_LINEAR_IN
;
65 // Preferred number of columns and rows in apps grid.
66 const int kPreferredCols
= 4;
67 const int kPreferredRows
= 4;
68 const int kPreferredIconDimension
= 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
;
96 #if defined(GOOGLE_CHROME_BUILD)
97 const char kAppListWMClass
[] = "chrome_app_list";
98 #else // CHROMIUM_BUILD
99 const char kAppListWMClass
[] = "chromium_app_list";
103 } // namespace app_list