| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/app_list/app_list_constants.h" | 5 #include "ui/app_list/app_list_constants.h" |
| 6 | 6 |
| 7 namespace app_list { | 7 namespace app_list { |
| 8 | 8 |
| 9 const SkColor kContentsBackgroundColor = SkColorSetRGB(0xFB, 0xFB, 0xFB); | 9 const SkColor kContentsBackgroundColor = SkColorSetRGB(0xFB, 0xFB, 0xFB); |
| 10 const SkColor kContentsSwitcherBackgroundColor = SK_ColorWHITE; | |
| 11 const SkColor kSearchBoxBackground = SK_ColorWHITE; | 10 const SkColor kSearchBoxBackground = SK_ColorWHITE; |
| 12 const SkColor kTopSeparatorColor = SkColorSetRGB(0xE5, 0xE5, 0xE5); | 11 const SkColor kTopSeparatorColor = SkColorSetRGB(0xE5, 0xE5, 0xE5); |
| 13 const SkColor kBottomSeparatorColor = SkColorSetRGB(0xE5, 0xE5, 0xE5); | 12 const SkColor kBottomSeparatorColor = SkColorSetRGB(0xE5, 0xE5, 0xE5); |
| 14 | 13 |
| 15 // The color of the separator used inside dialogs in the app list. | 14 // The color of the separator used inside dialogs in the app list. |
| 16 const SkColor kDialogSeparatorColor = SkColorSetRGB(0xD1, 0xD1, 0xD1); | 15 const SkColor kDialogSeparatorColor = SkColorSetRGB(0xD1, 0xD1, 0xD1); |
| 17 | 16 |
| 18 // 6% black over kContentsBackgroundColor | 17 // 6% black over kContentsBackgroundColor |
| 19 const SkColor kHighlightedColor = SkColorSetRGB(0xE6, 0xE6, 0xE6); | 18 const SkColor kHighlightedColor = SkColorSetRGB(0xE6, 0xE6, 0xE6); |
| 20 // 10% black over kContentsBackgroundColor | 19 // 10% black over kContentsBackgroundColor |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 const int kCenteredPreferredCols = 6; | 70 const int kCenteredPreferredCols = 6; |
| 72 const int kCenteredPreferredRows = 3; | 71 const int kCenteredPreferredRows = 3; |
| 73 | 72 |
| 74 // Preferred number of columns and rows in the experimental app list apps grid. | 73 // Preferred number of columns and rows in the experimental app list apps grid. |
| 75 const int kExperimentalPreferredCols = 6; | 74 const int kExperimentalPreferredCols = 6; |
| 76 const int kExperimentalPreferredRows = 4; | 75 const int kExperimentalPreferredRows = 4; |
| 77 | 76 |
| 78 // Radius of the circle, in which if entered, show re-order preview. | 77 // Radius of the circle, in which if entered, show re-order preview. |
| 79 const int kReorderDroppingCircleRadius = 35; | 78 const int kReorderDroppingCircleRadius = 35; |
| 80 | 79 |
| 80 // The padding around the outside of the experimental app list (top and sides). |
| 81 const int kExperimentalWindowPadding = 23; |
| 82 |
| 81 // Height of separator between the main view and contents switcher and of | 83 // Height of separator between the main view and contents switcher and of |
| 82 // the launcher page indicator. | 84 // the launcher page indicator. |
| 83 const int kContentsSwitcherSeparatorHeight = 1; | 85 const int kContentsSwitcherSeparatorHeight = 1; |
| 84 | 86 |
| 85 // Max items allowed in a folder. | 87 // Max items allowed in a folder. |
| 86 size_t kMaxFolderItems = 16; | 88 size_t kMaxFolderItems = 16; |
| 87 | 89 |
| 88 // Number of the top items in a folder, which are shown inside the folder icon | 90 // Number of the top items in a folder, which are shown inside the folder icon |
| 89 // and animated when opening and closing a folder. | 91 // and animated when opening and closing a folder. |
| 90 const size_t kNumFolderTopItems = 4; | 92 const size_t kNumFolderTopItems = 4; |
| 91 | 93 |
| 92 // Maximum length of the folder name in chars. | 94 // Maximum length of the folder name in chars. |
| 93 const size_t kMaxFolderNameChars = 40; | 95 const size_t kMaxFolderNameChars = 40; |
| 94 | 96 |
| 95 // Font style for app item labels. | 97 // Font style for app item labels. |
| 96 const ui::ResourceBundle::FontStyle kItemTextFontStyle = | 98 const ui::ResourceBundle::FontStyle kItemTextFontStyle = |
| 97 ui::ResourceBundle::SmallBoldFont; | 99 ui::ResourceBundle::SmallBoldFont; |
| 98 | 100 |
| 99 #if defined(OS_LINUX) | 101 #if defined(OS_LINUX) |
| 100 #if defined(GOOGLE_CHROME_BUILD) | 102 #if defined(GOOGLE_CHROME_BUILD) |
| 101 const char kAppListWMClass[] = "chrome_app_list"; | 103 const char kAppListWMClass[] = "chrome_app_list"; |
| 102 #else // CHROMIUM_BUILD | 104 #else // CHROMIUM_BUILD |
| 103 const char kAppListWMClass[] = "chromium_app_list"; | 105 const char kAppListWMClass[] = "chromium_app_list"; |
| 104 #endif | 106 #endif |
| 105 #endif | 107 #endif |
| 106 | 108 |
| 107 } // namespace app_list | 109 } // namespace app_list |
| OLD | NEW |