From 68d8540b9f4f7b5e56fffeb5aea138170d875b5a Mon Sep 17 00:00:00 2001 From: calamity Date: Tue, 26 Aug 2014 18:56:48 -0700 Subject: [PATCH] Adjust border of the experimental app list search box. This CL makes the bottom border of the experimental app list search box darker and thinner. BUG=406222 Review URL: https://codereview.chromium.org/491013004 Cr-Commit-Position: refs/heads/master@{#292075} --- ui/app_list/views/search_box_view.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/app_list/views/search_box_view.cc b/ui/app_list/views/search_box_view.cc index f69ebf6abbea..b77ee6665323 100644 --- a/ui/app_list/views/search_box_view.cc +++ b/ui/app_list/views/search_box_view.cc @@ -45,9 +45,10 @@ const int kMenuXOffsetFromButton = -7; const int kExperimentalSearchBoxHeight = 37; const int kBackgroundBorderWidth = 1; -const int kBackgroundBorderBottomWidth = 2; +const int kBackgroundBorderBottomWidth = 1; const int kBackgroundBorderCornerRadius = 2; const SkColor kBackgroundBorderColor = SkColorSetRGB(0xEE, 0xEE, 0xEE); +const SkColor kBackgroundBorderBottomColor = SkColorSetRGB(0xCC, 0xCC, 0xCC); // A background that paints a solid white rounded rect with a thin grey border. class SearchBoxBackground : public views::Background { @@ -67,7 +68,10 @@ class SearchBoxBackground : public views::Background { bounds.Inset(kBackgroundBorderWidth, kBackgroundBorderWidth, kBackgroundBorderWidth, - kBackgroundBorderBottomWidth); + 0); + paint.setColor(kBackgroundBorderBottomColor); + canvas->DrawRoundRect(bounds, kBackgroundBorderCornerRadius, paint); + bounds.Inset(0, 0, 0, kBackgroundBorderBottomWidth); paint.setColor(SK_ColorWHITE); canvas->DrawRoundRect(bounds, kBackgroundBorderCornerRadius, paint); } -- 2.11.4.GIT