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

Unified Diff: ui/app_list/views/app_list_background.cc

Issue 578243002: App list: Change some colours to match the new specs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares-line-not-all-the-way
Patch Set: app_list_background: Fix drawing code so it can draw transparent separator. Created 6 years, 3 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/app_list_constants.cc ('k') | ui/app_list/views/folder_header_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_background.cc
diff --git a/ui/app_list/views/app_list_background.cc b/ui/app_list/views/app_list_background.cc
index 509d01a5accaf132d140a7c23b3445a3e1f73359..008897ab51906e63bacb007593d172823a6bfe17 100644
--- a/ui/app_list/views/app_list_background.cc
+++ b/ui/app_list/views/app_list_background.cc
@@ -58,17 +58,17 @@ void AppListBackground::Paint(gfx::Canvas* canvas,
!app_list::switches::IsExperimentalAppListEnabled()) {
const gfx::Rect search_box_view_bounds =
search_box_view->ConvertRectToWidget(search_box_view->GetLocalBounds());
- gfx::Rect search_box_rect(bounds.x(),
- bounds.y(),
- bounds.width(),
- search_box_view_bounds.bottom() - bounds.y());
+ gfx::Rect search_box_rect(
+ bounds.x(),
+ bounds.y(),
+ bounds.width(),
+ search_box_view_bounds.bottom() - bounds.y() + kTopSeparatorSize);
paint.setColor(kSearchBoxBackground);
canvas->DrawRect(search_box_rect, paint);
gfx::Rect separator_rect(search_box_rect);
- separator_rect.set_y(separator_rect.bottom());
- separator_rect.set_height(kTopSeparatorSize);
+ separator_rect.Inset(0, search_box_rect.height() - kTopSeparatorSize, 0, 0);
canvas->FillRect(separator_rect, kTopSeparatorColor);
contents_top = separator_rect.bottom();
}
« no previous file with comments | « ui/app_list/app_list_constants.cc ('k') | ui/app_list/views/folder_header_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698