mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 04:21:44 +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
101 lines
2.9 KiB
QML
101 lines
2.9 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import QtQuick.Layouts 1.13
|
|
import QtGraphicalEffects 1.13
|
|
|
|
import utils 1.0
|
|
|
|
import shared 1.0
|
|
import shared.controls 1.0
|
|
|
|
import "../controls"
|
|
import "../stores"
|
|
import "../views"
|
|
import "../panels"
|
|
|
|
Item {
|
|
id: walletContainer
|
|
|
|
property alias currentTabIndex: walletTabBar.currentIndex
|
|
|
|
WalletHeader {
|
|
id: walletHeader
|
|
changeSelectedAccount: leftTab.changeSelectedAccount
|
|
currentAccount: RootStore.currentAccount
|
|
currency: RootStore.currentCurrency
|
|
}
|
|
|
|
RowLayout {
|
|
id: walletInfoContainer
|
|
anchors.bottom: parent.bottom
|
|
anchors.bottomMargin: 0
|
|
anchors.left: parent.left
|
|
anchors.leftMargin: 0
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: 0
|
|
anchors.top: walletHeader.bottom
|
|
anchors.topMargin: 23
|
|
|
|
Item {
|
|
id: walletInfoContent
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: true
|
|
|
|
TabBar {
|
|
id: walletTabBar
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: Style.current.bigPadding
|
|
anchors.left: parent.left
|
|
anchors.leftMargin: Style.current.bigPadding
|
|
anchors.top: parent.top
|
|
anchors.topMargin: Style.current.padding
|
|
height: assetBtn.height
|
|
background: Rectangle {
|
|
color: Style.current.transparent
|
|
}
|
|
StatusTabButton {
|
|
id: assetBtn
|
|
//% "Assets"
|
|
btnText: qsTrId("wallet-assets")
|
|
}
|
|
StatusTabButton {
|
|
id: collectiblesBtn
|
|
anchors.left: assetBtn.right
|
|
anchors.leftMargin: 32
|
|
//% "Collectibles"
|
|
btnText: qsTrId("wallet-collectibles")
|
|
}
|
|
StatusTabButton {
|
|
id: historyBtn
|
|
anchors.left: collectiblesBtn.right
|
|
anchors.leftMargin: 32
|
|
//% "History"
|
|
btnText: qsTrId("history")
|
|
}
|
|
}
|
|
|
|
StackLayout {
|
|
id: stackLayout
|
|
anchors.rightMargin: Style.current.bigPadding
|
|
anchors.leftMargin: Style.current.bigPadding
|
|
anchors.top: walletTabBar.bottom
|
|
anchors.right: parent.right
|
|
anchors.bottom: parent.bottom
|
|
anchors.left: parent.left
|
|
anchors.topMargin: Style.current.bigPadding
|
|
currentIndex: walletTabBar.currentIndex
|
|
|
|
AssetsView {
|
|
id: assetsTab
|
|
}
|
|
CollectiblesView {
|
|
id: collectiblesTab
|
|
}
|
|
HistoryView {
|
|
id: historyTab
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|