Commit 7fe59151 authored by Ravjit Singh Uppal's avatar Ravjit Singh Uppal Committed by Commit Bot

Fixed - Bullet color in the page indicator bubble are red

Bug: 1110946, 1096944
Change-Id: Ieab8517d6fcf980ac10b6b299d4d0f9e8fae6d1f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2326810
Commit-Queue: Ravjit Singh Uppal <ravjit@chromium.org>
Reviewed-by: default avatarBret Sepulveda <bsep@chromium.org>
Cr-Commit-Position: refs/heads/master@{#793201}
parent ea8f08cf
......@@ -14,13 +14,10 @@ constexpr int kColumnSetId = 0;
class BulletView : public views::View {
public:
explicit BulletView(SkColor color) : color_(color) {}
BulletView() = default;
void OnPaint(gfx::Canvas* canvas) override;
private:
SkColor color_;
DISALLOW_COPY_AND_ASSIGN(BulletView);
};
......@@ -35,7 +32,8 @@ void BulletView::OnPaint(gfx::Canvas* canvas) {
cc::PaintFlags flags;
flags.setStyle(cc::PaintFlags::kFill_Style);
flags.setColor(color_);
flags.setColor(views::style::GetColor(*this, views::style::CONTEXT_LABEL,
views::style::STYLE_PRIMARY));
flags.setAntiAlias(true);
canvas->DrawPath(path, flags);
......@@ -76,6 +74,6 @@ void BulletedLabelListView::AddLabel(const base::string16& text) {
label->SetMultiLine(true);
label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
layout->AddView(std::make_unique<BulletView>(label->GetEnabledColor()));
layout->AddView(std::make_unique<BulletView>());
layout->AddView(std::move(label));
}
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