From 6bb15252ced4860c2f6f312da4a6d17be667b38c Mon Sep 17 00:00:00 2001 From: Kennedy Izuegbu Date: Tue, 17 Sep 2024 18:10:14 +0100 Subject: [PATCH] fix market card darkmode (#638) --- ui/page/root/overview_page.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/page/root/overview_page.go b/ui/page/root/overview_page.go index 7c35a2792..d0e8890b3 100644 --- a/ui/page/root/overview_page.go +++ b/ui/page/root/overview_page.go @@ -697,7 +697,10 @@ func (pg *OverviewPage) mobileMarketOverview(gtx C) D { card := pg.Theme.Card() radius := cryptomaterial.CornerRadius{TopLeft: 20, BottomLeft: 20, TopRight: 20, BottomRight: 20} card.Radius = cryptomaterial.Radius(8) - card.Color = pg.Theme.Color.DefaultThemeColors().White + card.Color = pg.Theme.Color.DefaultThemeColors().SurfaceHighlight + if pg.AssetsManager.IsDarkModeOn() { + card.Color = pg.Theme.Color.DefaultThemeColors().Background + } return layout.Inset{Right: values.MarginPadding12}.Layout(gtx, func(gtx C) D { return card.Layout(gtx, func(gtx C) D { return cryptomaterial.LinearLayout{