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. 4 5 #include "ui/app_list/app_list_constants.h" 6 7 namespace app_list { 8 9 const SkColor kContentsBackgroundColor = SkColorSetRGB(0xFB, 0xFB, 0xFB); 10 const SkColor kSearchBoxBackground = SK_ColorWHITE; 11 const SkColor kTopSeparatorColor = SkColorSetRGB(0xE5, 0xE5, 0xE5); 12 const SkColor kBottomSeparatorColor = SkColorSetRGB(0xE5, 0xE5, 0xE5); 13 14 // The color of the separator used inside dialogs in the app list. 15 const SkColor kDialogSeparatorColor = SkColorSetRGB(0xD1, 0xD1, 0xD1); 16 17 // 6% black over kContentsBackgroundColor 18 const SkColor kHighlightedColor = SkColorSetRGB(0xE6, 0xE6, 0xE6); 19 // 10% black over kContentsBackgroundColor 20 const SkColor kSelectedColor = SkColorSetRGB(0xF1, 0xF1, 0xF1); 21 22 const SkColor kPagerHoverColor = SkColorSetRGB(0xB4, 0xB4, 0xB4); 23 const SkColor kPagerNormalColor = SkColorSetRGB(0xE2, 0xE2, 0xE2); 24 const SkColor kPagerSelectedColor = SkColorSetRGB(0x46, 0x8F, 0xFC); 25 26 const SkColor kResultBorderColor = SkColorSetRGB(0xE5, 0xE5, 0xE5); 27 const SkColor kResultDefaultTextColor = SkColorSetRGB(0x33, 0x33, 0x33); 28 const SkColor kResultDimmedTextColor = SkColorSetRGB(0x96, 0x96, 0x96); 29 const SkColor kResultURLTextColor = SkColorSetRGB(0x00, 0x99, 0x33); 30 31 const SkColor kGridTitleColor = SkColorSetRGB(0x5A, 0x5A, 0x5A); 32 const SkColor kGridTitleHoverColor = SkColorSetRGB(0x3C, 0x3C, 0x3C); 33 34 // Color of the folder ink bubble. 35 const SkColor kFolderBubbleColor = SkColorSetRGB(0xD7, 0xD7, 0xD7); 36 37 // Duration in milliseconds for page transition. 38 const int kPageTransitionDurationInMs = 180; 39 40 // Duration in milliseconds for over scroll page transition. 41 const int kOverscrollPageTransitionDurationMs = 50; 42 43 // Duration in milliseconds for fading in the target page when opening 44 // or closing a folder, and the duration for the top folder icon animation 45 // for flying in or out the folder. 46 const int kFolderTransitionInDurationMs = 400; 47 48 // Duration in milliseconds for fading out the old page when opening or closing 49 // a folder. 50 const int kFolderTransitionOutDurationMs = 30; 51 52 // Animation curve used for fading in the target page when opening or closing 53 // a folder. 54 const gfx::Tween::Type kFolderFadeInTweenType = gfx::Tween::EASE_IN_2; 55 56 // Animation curve used for fading out the target page when opening or closing 57 // a folder. 58 const gfx::Tween::Type kFolderFadeOutTweenType = gfx::Tween::FAST_OUT_LINEAR_IN; 59 60 // Preferred number of columns and rows in apps grid. 61 const int kPreferredCols = 4; 62 const int kPreferredRows = 4; 63 const int kGridIconDimension = 48; 64 65 // Preferred search result icon sizes. 66 const int kListIconSize = 32; 67 const int kTileIconSize = 48; 68 69 // Preferred number of columns and rows in the centered app list apps grid. 70 const int kCenteredPreferredCols = 6; 71 const int kCenteredPreferredRows = 3; 72 73 // Preferred number of columns and rows in the experimental app list apps grid. 74 const int kExperimentalPreferredCols = 6; 75 const int kExperimentalPreferredRows = 4; 76 77 // Radius of the circle, in which if entered, show re-order preview. 78 const int kReorderDroppingCircleRadius = 35; 79 80 // The padding around the outside of the experimental app list (top and sides). 81 const int kExperimentalWindowPadding = 23; 82 83 // Max items allowed in a folder. 84 size_t kMaxFolderItems = 16; 85 86 // Number of the top items in a folder, which are shown inside the folder icon 87 // and animated when opening and closing a folder. 88 const size_t kNumFolderTopItems = 4; 89 90 // Maximum length of the folder name in chars. 91 const size_t kMaxFolderNameChars = 40; 92 93 // Font style for app item labels. 94 const ui::ResourceBundle::FontStyle kItemTextFontStyle = 95 ui::ResourceBundle::SmallBoldFont; 96 97 #if defined(OS_LINUX) 98 #if defined(GOOGLE_CHROME_BUILD) 99 const char kAppListWMClass[] = "chrome_app_list"; 100 #else // CHROMIUM_BUILD 101 const char kAppListWMClass[] = "chromium_app_list"; 102 #endif 103 #endif 104 105 } // namespace app_list 106