2020-05-14 16:16:01 +00:00
|
|
|
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 {
|
2020-05-14 16:16:01 +00:00
|
|
|
id: walletView
|
|
|
|
x: 0
|
|
|
|
y: 0
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
LeftTab {
|
|
|
|
id: leftTab
|
|
|
|
}
|
|
|
|
|
2020-05-27 15:41:40 +00:00
|
|
|
Item {
|
2020-05-14 16:16:01 +00:00
|
|
|
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
|
|
|
|
|
2020-05-28 13:49:28 +00:00
|
|
|
WalletHeader {
|
2020-05-27 20:50:39 +00:00
|
|
|
id: walletHeader
|
|
|
|
}
|
2020-05-14 16:16:01 +00:00
|
|
|
|
2020-05-27 20:50:39 +00:00
|
|
|
RowLayout {
|
|
|
|
id: assetInfoContainer
|
|
|
|
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
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
2020-05-14 16:16:01 +00:00
|
|
|
|
2020-05-27 20:50:39 +00:00
|
|
|
Text {
|
|
|
|
id: assetsTitle
|
|
|
|
color: Theme.darkGrey
|
|
|
|
text: qsTr("Assets")
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: Theme.smallPadding
|
|
|
|
font.pixelSize: 14
|
|
|
|
}
|
2020-05-14 16:16:01 +00:00
|
|
|
|
2020-05-27 20:50:39 +00:00
|
|
|
Component {
|
|
|
|
id: assetViewDelegate
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: element6
|
|
|
|
height: 56
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 0
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 0
|
|
|
|
|
|
|
|
Image {
|
|
|
|
id: assetInfoContainer
|
|
|
|
width: 36
|
|
|
|
height: 36
|
|
|
|
source: image
|
2020-05-27 15:41:40 +00:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: Theme.padding
|
2020-05-27 20:50:39 +00:00
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
2020-05-27 15:41:40 +00:00
|
|
|
}
|
|
|
|
|
2020-05-27 20:50:39 +00:00
|
|
|
Text {
|
|
|
|
id: assetValue
|
|
|
|
text: value
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
font.pixelSize: 14
|
|
|
|
font.strikeout: false
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 72
|
2020-05-27 15:41:40 +00:00
|
|
|
}
|
2020-05-27 20:50:39 +00:00
|
|
|
Text {
|
|
|
|
id: assetSymbol
|
|
|
|
text: symbol
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
color: Theme.darkGrey
|
|
|
|
font.pixelSize: 14
|
|
|
|
anchors.right: assetFiatValue.left
|
|
|
|
anchors.rightMargin: 10
|
|
|
|
}
|
|
|
|
Text {
|
|
|
|
id: assetFiatValue
|
|
|
|
color: Theme.darkGrey
|
|
|
|
text: fiatValue
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
font.pixelSize: 14
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: Theme.padding
|
2020-05-27 15:41:40 +00:00
|
|
|
}
|
|
|
|
}
|
2020-05-14 16:16:01 +00:00
|
|
|
}
|
2020-05-27 15:41:40 +00:00
|
|
|
|
2020-05-27 20:50:39 +00:00
|
|
|
ListView {
|
|
|
|
id: listView
|
|
|
|
anchors.topMargin: 36
|
|
|
|
anchors.fill: parent
|
|
|
|
model: assetsModel.assets
|
|
|
|
delegate: assetViewDelegate
|
|
|
|
}
|
|
|
|
}
|
2020-05-14 16:16:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
2020-05-27 20:50:39 +00:00
|
|
|
D{i:0;autoSize:true;formeditorColor:"#ffffff";formeditorZoom:0.8999999761581421;height:770;width:1152}
|
|
|
|
D{i:16;anchors_x:0;anchors_y:0}
|
2020-05-14 16:16:01 +00:00
|
|
|
}
|
|
|
|
##^##*/
|
2020-05-27 20:50:39 +00:00
|
|
|
|