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

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

Issue 2952823002: cros: Make SearchResultTileItemView layout per DisplayType customized (Closed)
Patch Set: nits Created 3 years, 6 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/search_result_tile_item_view.h » ('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 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "ui/gfx/color_palette.h" 8 #include "ui/gfx/color_palette.h"
9 9
10 namespace app_list { 10 namespace app_list {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // a folder. 75 // a folder.
76 const gfx::Tween::Type kFolderFadeOutTweenType = gfx::Tween::FAST_OUT_LINEAR_IN; 76 const gfx::Tween::Type kFolderFadeOutTweenType = gfx::Tween::FAST_OUT_LINEAR_IN;
77 77
78 // Preferred number of columns and rows in apps grid. 78 // Preferred number of columns and rows in apps grid.
79 const int kPreferredCols = 6; 79 const int kPreferredCols = 6;
80 const int kPreferredRows = 4; 80 const int kPreferredRows = 4;
81 const int kGridIconDimension = 48; 81 const int kGridIconDimension = 48;
82 82
83 // The preferred app badge icon size. 83 // The preferred app badge icon size.
84 const int kAppBadgeIconSize = 12; 84 const int kAppBadgeIconSize = 12;
85 // The preferred badge background(circle) radius.
86 const int kBadgeBackgroundRadius = 10;
85 87
86 // Preferred search result icon sizes. 88 // Preferred search result icon sizes.
87 const int kListIconSize = 24; 89 const int kListIconSize = 24;
88 const int kListBadgeIconSize = 16; 90 const int kListBadgeIconSize = 16;
89 const int kListBadgeIconOffsetX = 6; 91 const int kListBadgeIconOffsetX = 6;
90 const int kListBadgeIconOffsetY = 6; 92 const int kListBadgeIconOffsetY = 6;
91 const int kTileIconSize = 48; 93 const int kTileIconSize = 48;
92 94
93 const SkColor kIconColor = gfx::kChromeIconGrey; 95 const SkColor kIconColor = gfx::kChromeIconGrey;
94 96
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 165 }
164 166
165 const gfx::ShadowValues& IconEndShadows() { 167 const gfx::ShadowValues& IconEndShadows() {
166 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, 168 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows,
167 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 8, 169 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 8,
168 SkColorSetARGB(0x50, 0, 0, 0)))); 170 SkColorSetARGB(0x50, 0, 0, 0))));
169 return icon_shadows; 171 return icon_shadows;
170 } 172 }
171 173
172 } // namespace app_list 174 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/app_list_constants.h ('k') | ui/app_list/views/search_result_tile_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698