Commit 167013cc authored by Leonard Grey's avatar Leonard Grey Committed by Commit Bot

Ensure find bar background is opaque

Bug: 918553
Change-Id: I03c20eedeede033bcfb912672ab29f02e8090c14
Reviewed-on: https://chromium-review.googlesource.com/c/1393532Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Leonard Grey <lgrey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#619641}
parent 388e52eb
...@@ -506,8 +506,10 @@ const char* FindBarView::GetClassName() const { ...@@ -506,8 +506,10 @@ const char* FindBarView::GetClassName() const {
} }
void FindBarView::OnNativeThemeChanged(const ui::NativeTheme* theme) { void FindBarView::OnNativeThemeChanged(const ui::NativeTheme* theme) {
SkColor bg_color = theme->GetSystemColor( SkColor bg_color =
ui::NativeTheme::kColorId_TextfieldDefaultBackground); SkColorSetA(theme->GetSystemColor(
ui::NativeTheme::kColorId_TextfieldDefaultBackground),
0xFF);
auto border = std::make_unique<views::BubbleBorder>( auto border = std::make_unique<views::BubbleBorder>(
views::BubbleBorder::NONE, views::BubbleBorder::SMALL_SHADOW, bg_color); views::BubbleBorder::NONE, views::BubbleBorder::SMALL_SHADOW, bg_color);
SetBackground(std::make_unique<views::BubbleBackground>(border.get())); SetBackground(std::make_unique<views::BubbleBackground>(border.get()));
......
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