Skip to content

Commit

Permalink
update space display for wallet name and center watch only wallet icon
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeBoy committed Mar 15, 2024
1 parent 7200752 commit 9dc11ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ui/page/components/wallet_account_selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func (ws *WalletAndAccountSelector) Layout(window app.WindowNavigator, gtx C) D
}.Layout(gtx,
layout.Rigid(ws.setWalletLogo),
layout.Rigid(func(gtx C) D {
gtx.Constraints.Max.X = gtx.Constraints.Max.X * 3 / 5
gtx.Constraints.Max.X = gtx.Constraints.Max.X / 2
if ws.accountSelector {
if ws.selectedAccount == nil {
return ws.Theme.Body1("").Layout(gtx)
Expand Down Expand Up @@ -699,7 +699,7 @@ func (sm *selectorModal) modalListItemLayout(gtx C, selectorItem *SelectorItem)
acct.Color = sm.Theme.Color.Text
acct.Font.Weight = font.Normal
return EndToEndRow(gtx, func(gtx C) D {
gtx.Constraints.Max.X = gtx.Constraints.Max.X * 3 / 5
gtx.Constraints.Max.X = gtx.Constraints.Max.X / 2
return acct.Layout(gtx)
}, func(gtx C) D {
return LayoutBalance(gtx, sm.Load, totalBal)
Expand Down
4 changes: 2 additions & 2 deletions ui/page/root/wallet_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ func (pg *WalletSelectorPage) walletWrapper(gtx C, item *walletWithBalance) D {

func (pg *WalletSelectorPage) layoutNameAndBalance(gtx C, item *walletWithBalance) D {
return layout.Flex{
Axis: layout.Horizontal,
Alignment: layout.Middle,
}.Layout(gtx,
layout.Rigid(func(gtx C) D {
gtx.Constraints.Max.X = gtx.Constraints.Max.X * 3 / 5
gtx.Constraints.Max.X = gtx.Constraints.Max.X / 2
txt := pg.Theme.Label(values.TextSize18, item.wallet.GetWalletName())
txt.Color = pg.Theme.Color.Text
txt.Font.Weight = font.SemiBold
Expand Down

0 comments on commit 9dc11ff

Please sign in to comment.