Commit c70a60a2 authored by Alex Ilin's avatar Alex Ilin Committed by Commit Bot

[signin] Update Reauth dialog frame color for the dark theme

In the dark mode, the reauth dialog frame color should match the
contents background color, as it does in the light mode.

Bug: 1045515
Change-Id: I701e8ece59c9a416f6fd4cf3e1c57e82e418c03e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2210502Reviewed-by: default avatarDavid Roger <droger@chromium.org>
Commit-Queue: Alex Ilin <alexilin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#771556}
parent adf0b116
......@@ -276,9 +276,12 @@ void SigninViewControllerDelegateViews::DisplayModal() {
NOTREACHED() << "Unsupported dialog modal type " << dialog_modal_type_;
}
if (should_show_close_button_) {
SkColor border_color = GetNativeTheme()->ShouldUseDarkColors()
? gfx::kGoogleGrey900
: SK_ColorWHITE;
GetBubbleFrameView()->SetBubbleBorder(std::make_unique<views::BubbleBorder>(
views::BubbleBorder::NONE, views::BubbleBorder::BIG_SHADOW,
SK_ColorWHITE));
border_color));
}
content_view_->RequestFocus();
......
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