Commit 68d8540b authored by calamity's avatar calamity Committed by Commit bot

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}
parent c3531617
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment