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

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

Issue 491013004: Adjust border of the experimental app list search box. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/search_box_view.cc
diff --git a/ui/app_list/views/search_box_view.cc b/ui/app_list/views/search_box_view.cc
index f69ebf6abbea7736171db0100ed7abbcef6a50e6..b77ee6665323aa8097c6e60541d0bc7fc234c6cc 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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698