mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 06:16:32 +00:00
59f604349c
refactor: wallet: connect current account refactor(@wallet): load collection and connect to store refactor(@wallet): add boilerplate for accounts creation/generation refactor(@wallet): watch account refactor(@wallet): Add account generation refactor(@wallet): display all accounts refactor(@wallet): switch account refactor(@desktop): update current currency refactor(@desktop/wallet): token action refactor(@desktop/wallet): Add update account refactor(@desktop/wallet): filter chat account from wallet refactor(@desktop/wallet): Update currency attribute refactor(@desktop/wallet): Fix display of various balances refactor(@dekstop/wallet): handle current account changed refactor(@wallet/desktop): add notify event on main section refactor(@desktop/wallet): Push events from service refactor(@desktop/wallet): handle all tokens event refactor(@desktop/wallet): refresh accounts on event refactor(@wallet/desktop): formatting of currency balances refactor(@desktop/wallet): load collectible refactor: refactor wallet transaction history to the new architecture update status-lib refactor: add back events for the transaction history refactor: support multiple accounts in the transaction history
69 lines
1.9 KiB
QML
69 lines
1.9 KiB
QML
import QtQuick 2.13
|
|
|
|
import utils 1.0
|
|
|
|
import shared 1.0
|
|
import shared.panels 1.0
|
|
|
|
Item {
|
|
id: assetDelegate
|
|
|
|
property string currency: ""
|
|
|
|
anchors.right: parent.right
|
|
anchors.left: parent.left
|
|
height: 40
|
|
|
|
Image {
|
|
id: assetInfoImage
|
|
width: 36
|
|
height: 36
|
|
source: symbol ? Style.png("tokens/" + symbol) : ""
|
|
anchors.left: parent.left
|
|
anchors.leftMargin: 0
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
onStatusChanged: {
|
|
if (assetInfoImage.status == Image.Error) {
|
|
assetInfoImage.source = Style.png("tokens/DEFAULT-TOKEN@3x")
|
|
}
|
|
}
|
|
}
|
|
StyledText {
|
|
id: assetSymbol
|
|
text: symbol
|
|
anchors.left: assetInfoImage.right
|
|
anchors.leftMargin: Style.current.smallPadding
|
|
anchors.top: assetInfoImage.top
|
|
anchors.topMargin: 0
|
|
font.pixelSize: 15
|
|
}
|
|
StyledText {
|
|
id: assetFullTokenName
|
|
text: name
|
|
anchors.bottom: parent.bottom
|
|
anchors.bottomMargin: 0
|
|
anchors.left: assetInfoImage.right
|
|
anchors.leftMargin: Style.current.smallPadding
|
|
color: Style.current.secondaryText
|
|
font.pixelSize: 15
|
|
}
|
|
StyledText {
|
|
id: assetBalance
|
|
text: Utils.toLocaleString(balance, localAppSettings.locale) + " " + symbol.toUpperCase()
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: 0
|
|
font.pixelSize: 15
|
|
font.strikeout: false
|
|
}
|
|
StyledText {
|
|
id: assetCurrencyBalance
|
|
color: Style.current.secondaryText
|
|
text: Utils.toLocaleString(currencyBalance.toFixed(2), localAppSettings.locale) + " " + assetDelegate.currency.toUpperCase()
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: 0
|
|
anchors.bottom: parent.bottom
|
|
anchors.bottomMargin: 0
|
|
font.pixelSize: 15
|
|
}
|
|
}
|