Skip to content

Commit

Permalink
fix market card darkmode (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreacot authored Sep 17, 2024
1 parent fa7cad6 commit 6bb1525
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/page/root/overview_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 6bb1525

Please sign in to comment.