Commit a5be1ea1 authored by Tom Anderson's avatar Tom Anderson Committed by Commit Bot

Fix payment dialog background color with GTK theme

BUG=914974
R=pkasting

Change-Id: Ia017ddb1cb1314bea83c29b5dd9a313cf60e717b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2076098
Auto-Submit: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#744818}
parent 033c45b6
...@@ -242,6 +242,7 @@ void CardUnmaskPromptViews::AddedToWidget() { ...@@ -242,6 +242,7 @@ void CardUnmaskPromptViews::AddedToWidget() {
} }
void CardUnmaskPromptViews::OnThemeChanged() { void CardUnmaskPromptViews::OnThemeChanged() {
views::BubbleDialogDelegateView::OnThemeChanged();
SkColor bg_color = GetNativeTheme()->GetSystemColor( SkColor bg_color = GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_DialogBackground); ui::NativeTheme::kColorId_DialogBackground);
overlay_->SetBackground(views::CreateSolidBackground(bg_color)); overlay_->SetBackground(views::CreateSolidBackground(bg_color));
......
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