status-desktop/ui/app/AppLayouts/Wallet/WalletLayout.qml

121 lines
3.5 KiB
QML
Raw Normal View History

import QtQuick 2.3
import QtQuick.Controls 1.3
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
import Qt.labs.platform 1.1
import "../../../imports"
import "../../../shared"
import "."
2020-05-27 15:41:40 +00:00
SplitView {
id: walletView
x: 0
y: 0
Layout.fillHeight: true
Layout.fillWidth: true
handleDelegate: Rectangle {
implicitWidth: 1
implicitHeight: 4
color: Theme.grey
}
LeftTab {
id: leftTab
}
2020-05-27 15:41:40 +00:00
Item {
id: walletContainer
anchors.top: parent.top
anchors.topMargin: 0
anchors.bottom: parent.bottom
anchors.bottomMargin: 0
anchors.right: parent.right
anchors.rightMargin: 0
anchors.left: leftTab.right
anchors.leftMargin: 0
WalletHeader {
2020-05-27 20:50:39 +00:00
id: walletHeader
2020-06-10 20:21:23 +00:00
changeSelectedAccount: leftTab.changeSelectedAccount
2020-05-27 20:50:39 +00:00
}
2020-05-27 20:50:39 +00:00
RowLayout {
2020-05-28 14:54:42 +00:00
id: walletInfoContainer
2020-05-27 20:50:39 +00:00
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 {
2020-05-28 14:54:42 +00:00
id: walletInfoContent
Layout.fillHeight: true
Layout.fillWidth: true
2020-05-27 20:50:39 +00:00
TabBar {
id: walletTabBar
2020-05-27 20:50:39 +00:00
anchors.right: parent.right
anchors.rightMargin: Theme.bigPadding
2020-05-27 20:50:39 +00:00
anchors.left: parent.left
anchors.leftMargin: Theme.bigPadding
anchors.top: parent.top
anchors.topMargin: Theme.padding
2020-05-28 14:54:42 +00:00
height: assetBtn.height
2020-05-27 20:50:39 +00:00
StatusTabButton {
id: assetBtn
btnText: "Assets"
2020-05-27 15:41:40 +00:00
}
StatusTabButton {
id: collectiblesBtn
anchors.left: assetBtn.right
anchors.leftMargin: 32
btnText: "Collectibles"
2020-05-27 15:41:40 +00:00
}
StatusTabButton {
id: historyBtn
anchors.left: collectiblesBtn.right
anchors.leftMargin: 32
btnText: "History"
onClicked: {
walletModel.loadTransactionsForAccount(walletModel.currentAccount.address)
}
2020-05-27 20:50:39 +00:00
}
}
2020-05-28 14:54:42 +00:00
StackLayout {
id: stackLayout
anchors.rightMargin: Theme.bigPadding
anchors.leftMargin: Theme.bigPadding
anchors.top: walletTabBar.bottom
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.topMargin: Theme.bigPadding
currentIndex: walletTabBar.currentIndex
2020-05-28 14:54:42 +00:00
AssetsTab {
id: assetsTab
}
CollectiblesTab {
id: collectiblesTab
}
HistoryTab {
id: historyTab
2020-05-27 15:41:40 +00:00
}
}
2020-05-27 20:50:39 +00:00
}
}
}
}
/*##^##
Designer {
D{i:0;autoSize:true;formeditorColor:"#ffffff";height:770;width:1152}
}
##^##*/
2020-05-27 20:50:39 +00:00