fix: fix Wallet asset list to not show on top of header

This commit is contained in:
Jonathan Rainville 2020-06-09 10:51:38 -04:00 committed by Iuri Matias
parent 2ade9e938d
commit c3f9d57e5d

@ -13,53 +13,67 @@ Item {
id: walletInfoContainer id: walletInfoContainer
width: 340 width: 340
Text { Rectangle {
id: title id: walletInfoHeader
x: 143
y: 16
text: qsTr("Wallet")
anchors.top: parent.top
anchors.topMargin: Theme.padding
anchors.horizontalCenter: parent.horizontalCenter
font.weight: Font.Bold
font.pixelSize: 17
}
Item {
id: walletValueTextContainer
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: Theme.padding anchors.leftMargin: 0
anchors.top: title.bottom anchors.right: parent.right
anchors.topMargin: Theme.padding anchors.rightMargin: 0
height: walletAmountValue.height + totalValue.height height: walletValueTextContainer.y + walletValueTextContainer.height + Theme.padding
color: Theme.white
TextEdit { z: 1
id: walletAmountValue border.width: 0
color: "black"
text: walletModel.totalFiatBalance
selectByMouse: true
cursorVisible: true
readOnly: true
anchors.left: parent.left
anchors.leftMargin: 1
font.weight: Font.Medium
font.pixelSize: 30
}
Text { Text {
id: totalValue id: title
color: Theme.darkGrey x: 143
text: "Total value" y: 16
anchors.left: walletAmountValue.left text: qsTr("Wallet")
anchors.leftMargin: 0 anchors.top: parent.top
anchors.top: walletAmountValue.bottom anchors.topMargin: Theme.padding
anchors.topMargin: 0 anchors.horizontalCenter: parent.horizontalCenter
font.weight: Font.Medium font.weight: Font.Bold
font.pixelSize: 13 font.pixelSize: 17
} }
}
AddAccount {} Item {
id: walletValueTextContainer
x: 16
y: 52
anchors.left: parent.left
anchors.leftMargin: Theme.padding
anchors.top: title.bottom
anchors.topMargin: Theme.padding
height: walletAmountValue.height + totalValue.height
TextEdit {
id: walletAmountValue
color: "black"
text: walletModel.totalFiatBalance
selectByMouse: true
cursorVisible: true
readOnly: true
anchors.left: parent.left
anchors.leftMargin: 1
font.weight: Font.Medium
font.pixelSize: 30
}
Text {
id: totalValue
color: Theme.darkGrey
text: "Total value"
anchors.left: walletAmountValue.left
anchors.leftMargin: 0
anchors.top: walletAmountValue.bottom
anchors.topMargin: 0
font.weight: Font.Medium
font.pixelSize: 13
}
}
AddAccount { x: 288 ;y: 59}
}
Component { Component {
id: walletDelegate id: walletDelegate
@ -141,8 +155,7 @@ Item {
ListView { ListView {
id: listView id: listView
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.top: walletValueTextContainer.bottom anchors.top: walletInfoHeader.bottom
anchors.topMargin: Theme.padding
spacing: 5 spacing: 5
anchors.right: parent.right anchors.right: parent.right
anchors.left: parent.left anchors.left: parent.left
@ -173,13 +186,14 @@ Item {
} }
model: walletModel.accounts model: walletModel.accounts
// model: exampleWalletModel // model: exampleWalletModel
} }
} }
/*##^## /*##^##
Designer { Designer {
D{i:0;formeditorColor:"#ffffff";formeditorZoom:0.75;height:770;width:340}D{i:2;anchors_x:82} D{i:0;formeditorColor:"#ffffff";formeditorZoom:0.75;height:770;width:340}
} }
##^##*/ ##^##*/