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

Unified Diff: ui/app_list/folder_image.cc

Issue 1154323002: Use app list item shadow for app list folders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_arrow_keys_crash
Patch Set: fix mac compile Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/demo/app_list_demo_views.cc ('k') | ui/app_list/folder_image_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/folder_image.cc
diff --git a/ui/app_list/folder_image.cc b/ui/app_list/folder_image.cc
index a542f553b1d103fcd9c1d46ba178304b81ee9160..0c9b9588b947feeecf19ffce9ca59545edab2430 100644
--- a/ui/app_list/folder_image.cc
+++ b/ui/app_list/folder_image.cc
@@ -77,17 +77,12 @@ void FolderImageSource::DrawIcon(gfx::Canvas* canvas,
}
void FolderImageSource::Draw(gfx::Canvas* canvas) {
- // Draw circle for folder shadow.
- gfx::PointF shadow_center(size().width() / 2, size().height() / 2);
SkPaint paint;
+ // Draw circle for folder bubble.
+ gfx::PointF bubble_center(size().width() / 2, size().height() / 2);
+ bubble_center.Offset(0, -kFolderBubbleOffsetY);
paint.setStyle(SkPaint::kFill_Style);
paint.setAntiAlias(true);
- paint.setColor(kFolderShadowColor);
- canvas->sk_canvas()->drawCircle(shadow_center.x(), shadow_center.y(),
- kFolderShadowRadius, paint);
- // Draw circle for folder bubble.
- gfx::PointF bubble_center(shadow_center);
- bubble_center.Offset(0, -kFolderShadowOffsetY);
paint.setColor(kFolderBubbleColor);
canvas->sk_canvas()->drawCircle(bubble_center.x(), bubble_center.y(),
kFolderBubbleRadius, paint);
« no previous file with comments | « ui/app_list/demo/app_list_demo_views.cc ('k') | ui/app_list/folder_image_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698