Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: ui/app_list/app_list_constants.cc

Issue 898253002: Update apps grid view layout to match latest mocks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@search_box_animate_shadow
Patch Set: rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/app_list/app_list_constants.h ('k') | ui/app_list/views/app_list_item_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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(0xF5, 0xF5, 0xF5); 9 const SkColor kContentsBackgroundColor = SkColorSetRGB(0xF5, 0xF5, 0xF5);
10 const SkColor kSearchBoxBackground = SK_ColorWHITE; 10 const SkColor kSearchBoxBackground = SK_ColorWHITE;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const int kCenteredPreferredCols = 6; 91 const int kCenteredPreferredCols = 6;
92 const int kCenteredPreferredRows = 3; 92 const int kCenteredPreferredRows = 3;
93 93
94 // Preferred number of columns and rows in the experimental app list apps grid. 94 // Preferred number of columns and rows in the experimental app list apps grid.
95 const int kExperimentalPreferredCols = 6; 95 const int kExperimentalPreferredCols = 6;
96 const int kExperimentalPreferredRows = 4; 96 const int kExperimentalPreferredRows = 4;
97 97
98 // Radius of the circle, in which if entered, show re-order preview. 98 // Radius of the circle, in which if entered, show re-order preview.
99 const int kReorderDroppingCircleRadius = 35; 99 const int kReorderDroppingCircleRadius = 35;
100 100
101 // The padding around the outside of the experimental app list (top and sides). 101 // The padding around the outside of the experimental app list apps grid
102 const int kExperimentalWindowPadding = 24; 102 // (sides).
103 const int kExperimentalAppsGridPadding = 24;
104
105 // The padding around the outside of the experimental app list search box (top
106 // and sides).
107 const int kExperimentalSearchBoxPadding = 16;
103 108
104 // Max items allowed in a folder. 109 // Max items allowed in a folder.
105 size_t kMaxFolderItems = 16; 110 size_t kMaxFolderItems = 16;
106 111
107 // Number of the top items in a folder, which are shown inside the folder icon 112 // Number of the top items in a folder, which are shown inside the folder icon
108 // and animated when opening and closing a folder. 113 // and animated when opening and closing a folder.
109 const size_t kNumFolderTopItems = 4; 114 const size_t kNumFolderTopItems = 4;
110 115
111 // Maximum length of the folder name in chars. 116 // Maximum length of the folder name in chars.
112 const size_t kMaxFolderNameChars = 40; 117 const size_t kMaxFolderNameChars = 40;
(...skipping 21 matching lines...) Expand all
134 case 2: 139 case 2:
135 return gfx::ShadowValue(gfx::Point(0, 2), 4, 140 return gfx::ShadowValue(gfx::Point(0, 2), 4,
136 SkColorSetARGB(0x33, 0, 0, 0)); 141 SkColorSetARGB(0x33, 0, 0, 0));
137 default: 142 default:
138 return gfx::ShadowValue(gfx::Point(0, 8), 12, 143 return gfx::ShadowValue(gfx::Point(0, 8), 12,
139 SkColorSetARGB(0x3F, 0, 0, 0)); 144 SkColorSetARGB(0x3F, 0, 0, 0));
140 } 145 }
141 } 146 }
142 147
143 } // namespace app_list 148 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/app_list_constants.h ('k') | ui/app_list/views/app_list_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698