summaryrefslogtreecommitdiff
path: root/chromium/ui/views/bubble/footnote_container_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/views/bubble/footnote_container_view.cc')
-rw-r--r--chromium/ui/views/bubble/footnote_container_view.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/chromium/ui/views/bubble/footnote_container_view.cc b/chromium/ui/views/bubble/footnote_container_view.cc
index e8a28b3b035..58a32ea72a9 100644
--- a/chromium/ui/views/bubble/footnote_container_view.cc
+++ b/chromium/ui/views/bubble/footnote_container_view.cc
@@ -54,7 +54,10 @@ FootnoteContainerView::FootnoteContainerView(const gfx::Insets& margins,
SetLayoutManager(
std::make_unique<BoxLayout>(BoxLayout::kVertical, margins, 0));
SetCornerRadius(corner_radius);
- SetBorder(CreateSolidSidedBorder(1, 0, 0, 0, gfx::kGoogleGrey200));
+ SetBorder(CreateSolidSidedBorder(1, 0, 0, 0,
+ GetNativeTheme()->SystemDarkModeEnabled()
+ ? gfx::kGoogleGrey900
+ : gfx::kGoogleGrey200));
AddChildView(child_view);
SetVisible(child_view->visible());
}
@@ -62,9 +65,8 @@ FootnoteContainerView::FootnoteContainerView(const gfx::Insets& margins,
FootnoteContainerView::~FootnoteContainerView() = default;
void FootnoteContainerView::SetCornerRadius(float corner_radius) {
- // TODO(crbug.com/893598): Finalize dark mode color.
SkColor background_color = GetNativeTheme()->SystemDarkModeEnabled()
- ? gfx::kGoogleGrey800
+ ? SkColorSetRGB(0x32, 0x36, 0x39)
: gfx::kGoogleGrey050;
SetBackground(std::make_unique<HalfRoundedRectBackground>(background_color,
corner_radius));