2021-10-05 20:50:22 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
|
|
|
import QtGraphicalEffects 1.13
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared 1.0
|
|
|
|
import shared.controls 1.0
|
|
|
|
|
2021-10-05 20:50:22 +00:00
|
|
|
import "../controls"
|
|
|
|
import "../stores"
|
|
|
|
import "../views"
|
|
|
|
import "../panels"
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: walletContainer
|
|
|
|
|
2021-12-06 21:10:54 +00:00
|
|
|
property var changeSelectedAccount
|
2021-10-05 20:50:22 +00:00
|
|
|
property alias currentTabIndex: walletTabBar.currentIndex
|
2022-01-31 13:29:27 +00:00
|
|
|
property var store
|
2022-03-10 17:01:17 +00:00
|
|
|
property var emojiPopup
|
2021-10-05 20:50:22 +00:00
|
|
|
|
|
|
|
WalletHeader {
|
|
|
|
id: walletHeader
|
2021-12-06 21:10:54 +00:00
|
|
|
locale: RootStore.locale
|
2021-10-21 08:22:05 +00:00
|
|
|
currency: RootStore.currentCurrency
|
2021-12-06 21:10:54 +00:00
|
|
|
currentAccount: RootStore.currentAccount
|
2022-01-11 23:16:17 +00:00
|
|
|
changeSelectedAccount: walletContainer.changeSelectedAccount
|
2022-01-31 13:29:27 +00:00
|
|
|
store: walletContainer.store
|
2022-02-15 13:19:45 +00:00
|
|
|
walletStore: RootStore
|
2022-03-10 17:01:17 +00:00
|
|
|
emojiPopup: walletContainer.emojiPopup
|
2021-10-05 20:50:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|