Skip to content

Commit

Permalink
Update dex icon DrawerNav
Browse files Browse the repository at this point in the history
  • Loading branch information
song50119 committed Nov 22, 2021
1 parent 6eec405 commit 1dfc9fd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
Binary file added ui/assets/decredicons/dex_icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui/assets/decredicons/dex_icon_inactive.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed ui/assets/decredicons/dex_logo.png
Binary file not shown.
13 changes: 7 additions & 6 deletions ui/load/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type Icons struct {
TicketRevokedIcon,
TicketUnminedIcon *decredmaterial.Image

DexLogo, BTC, DCR, LTC, BCH *decredmaterial.Image
DexIcon, DexIconInactive, BTC, DCR, LTC, BCH *decredmaterial.Image
}

type Load struct {
Expand Down Expand Up @@ -226,11 +226,12 @@ func loadIcons() Icons {
GovernanceActiveIcon: decredmaterial.NewImage(decredIcons["governance_active"]),
GovernanceInactiveIcon: decredmaterial.NewImage(decredIcons["governance_inactive"]),

DexLogo: decredmaterial.NewImage(decredIcons["dex_logo"]),
BTC: decredmaterial.NewImage(decredIcons["dex_btc"]),
DCR: decredmaterial.NewImage(decredIcons["dex_dcr"]),
BCH: decredmaterial.NewImage(decredIcons["dex_bch"]),
LTC: decredmaterial.NewImage(decredIcons["dex_ltc"]),
DexIcon: decredmaterial.NewImage(decredIcons["dex_icon"]),
DexIconInactive: decredmaterial.NewImage(decredIcons["dex_icon_inactive"]),
BTC: decredmaterial.NewImage(decredIcons["dex_btc"]),
DCR: decredmaterial.NewImage(decredIcons["dex_dcr"]),
BCH: decredmaterial.NewImage(decredIcons["dex_bch"]),
LTC: decredmaterial.NewImage(decredIcons["dex_ltc"]),
}
return ic
}
4 changes: 2 additions & 2 deletions ui/page/main_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ func (mp *MainPage) initNavItems() {
},
{
Clickable: mp.Theme.NewClickable(true),
Image: mp.Icons.DexLogo,
ImageInactive: mp.Icons.DexLogo,
Image: mp.Icons.DexIcon,
ImageInactive: mp.Icons.DexIconInactive,
Title: values.String(values.StrDex),
PageID: dexclient.MarketPageID,
},
Expand Down

0 comments on commit 1dfc9fd

Please sign in to comment.