Commit 15f55eb8 authored by Thomas Tangl's avatar Thomas Tangl Committed by Commit Bot

[profile-menu] Make heading background rectangular

Bug: 995720
Change-Id: I8a430194bd97efc6de3bdd0586aa591e46310611
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1863931
Auto-Submit: Thomas Tangl <tangltom@chromium.org>
Reviewed-by: default avatarDavid Roger <droger@chromium.org>
Commit-Queue: Thomas Tangl <tangltom@chromium.org>
Cr-Commit-Position: refs/heads/master@{#706901}
parent d222e6a9
......@@ -257,8 +257,6 @@ void ProfileMenuViewBase::SetHeading(const base::string16& heading,
const SkColor kBackgroundColor =
ui::NativeTheme::GetInstanceForNativeUi()->GetSystemColor(
ui::NativeTheme::kColorId_HighlightedMenuItemBackgroundColor);
const int kCornerRadius =
views::LayoutProvider::Get()->GetCornerRadiusMetric(views::EMPHASIS_HIGH);
heading_container_->RemoveAllChildViews(/*delete_children=*/true);
views::BoxLayout* heading_layout = heading_container_->SetLayoutManager(
......@@ -267,7 +265,7 @@ void ProfileMenuViewBase::SetHeading(const base::string16& heading,
gfx::Insets(kInsidePadding)));
if (!heading.empty()) {
heading_container_->SetBackground(
views::CreateRoundedRectBackground(kBackgroundColor, kCornerRadius));
views::CreateSolidBackground(kBackgroundColor));
}
// Add the label even if |heading| is empty. This needs to be done so the icon
......
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