Skip to content

Commit

Permalink
fix hide button alignment
Browse files Browse the repository at this point in the history
fix market overview background
  • Loading branch information
dreacot committed Oct 1, 2024
1 parent 4104d68 commit 20aa80f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ui/page/root/home_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -891,14 +891,14 @@ func (hp *HomePage) totalBalanceLayout(gtx C) D {

func (hp *HomePage) balanceLayout(gtx C) D {
if hp.AssetsManager.ExchangeRateFetchingEnabled() && totalBalanceUSD != "" {
return layout.Flex{}.Layout(gtx,
return layout.Flex{Alignment: layout.Middle}.Layout(gtx,
layout.Rigid(hp.LayoutUSDBalance),
layout.Rigid(func(gtx C) D {
icon := hp.Theme.Icons.VisibilityOffIcon
if hp.isBalanceHidden {
icon = hp.Theme.Icons.VisibilityIcon
}
return layout.Inset{Top: values.MarginPadding5}.Layout(gtx, func(gtx C) D {
return layout.Inset{}.Layout(gtx, func(gtx C) D {
return hp.hideBalanceButton.Layout(gtx, hp.Theme.NewIcon(icon).Layout24dp)
})
}),
Expand Down
2 changes: 1 addition & 1 deletion ui/page/root/overview_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ 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().SurfaceHighlight
card.Color = pg.Theme.Color.DefaultThemeColors().Surface
if pg.AssetsManager.IsDarkModeOn() {
card.Color = pg.Theme.Color.DefaultThemeColors().Background
}
Expand Down
2 changes: 1 addition & 1 deletion ui/page/send/layout.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (pg *Page) sendLayout(gtx C) D {
}

func (pg *Page) titleLayout(gtx C) D {
return layout.Flex{}.Layout(gtx,
return layout.Flex{Alignment: layout.Middle}.Layout(gtx,
layout.Rigid(func(gtx C) D {
return layout.Inset{Right: values.MarginPadding6}.Layout(gtx, func(gtx C) D {
lbl := pg.Theme.Label(values.TextSizeTransform(pg.IsMobileView(), values.TextSize20), values.String(values.StrSend))
Expand Down

0 comments on commit 20aa80f

Please sign in to comment.