Skip to content
Snippets Groups Projects
Commit c5323154 authored by littletux89@gmail.com's avatar littletux89@gmail.com
Browse files

[+] Added screen display wallets.

parent 47da757f
No related branches found
No related tags found
No related merge requests found
...@@ -127,9 +127,9 @@ Page { ...@@ -127,9 +127,9 @@ Page {
Image Image
{ {
id: imageMenu id: imageMenu
source: "qrc:/Resources/Icons/home.png" source: "qrc:/Resources/Icons/exit.png"
height: 36 height: 32
width: 36 width: 32
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
Text Text
...@@ -139,12 +139,19 @@ Page { ...@@ -139,12 +139,19 @@ Page {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
} }
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
onClicked: onHoveredChanged:
{ {
rectangleBorder.color = "#EE5321" rectangleBorder.color = "#EE5321"
} }
onClicked:
{
Qt.quit()
}
} }
} }
} }
......
...@@ -5,10 +5,110 @@ Page { ...@@ -5,10 +5,110 @@ Page {
id: dapUiQmlWidgetChainWallet id: dapUiQmlWidgetChainWallet
title: qsTr("Wallet") title: qsTr("Wallet")
Text { ListView {
id: name id: listViewWallet
anchors.centerIn: parent anchors.fill: parent
text: qsTr("Wallet") anchors.margins: 10
spacing: 10
delegate: Item {
width: parent.width
height: 150
Rectangle {
id: rectangleWallet
anchors.fill: parent
color: "lightgray"
opacity: 0.5
radius: 5
border.color: "gray"
clip: true
Rectangle
{
id: iconWallet
height: 140
width: 140
border.color: "gray"
anchors.left: parent.left
anchors.leftMargin: 5
anchors.verticalCenter: parent.verticalCenter
radius: 3.5
Image
{
anchors.fill: parent
source: "qrc:/Resources/Icons/add.png"
}
}
Column
{
anchors.verticalCenter: parent.verticalCenter
anchors.left: iconWallet.right
anchors.leftMargin: 10
anchors.right: parent.right
anchors.rightMargin: 10
spacing: 5
Text {
id: nameWallet
text: name
bottomPadding: 15
font.bold: true
font.pixelSize: 20
}
Text {
id: lableAddress
text: "Address:"
font.pixelSize: 18
color: "gray"
}
TextEdit {
id: addressWallet
text: address
width: parent.width
font.pixelSize: 16
wrapMode: Text.Wrap
selectByMouse: true
// clip: true
// elide: Text.ElideRight
}
}
}
}
model: ListModel {
ListElement {
name: "mywallet"
address: "RpiDC8c1SxrTNbxwSTVP6mAHhXvUAgCthoCfpVmUSm889M3zt5JfBxo6iRoAPmJkCPihSWNxhRtdTxnd7LXwcj1nbVd5NQyW1kCgXyM6"
}
ListElement {
name: "mywallet"
address: "RpiDC8c1SxrTNbxwSTVP6mAHhXvUAgCthoCfpVmUSm889M3zt5JfBxo6iRoAPmJkCPihSWNxhRtdTxnd7LXwcj1nbVd5NQyW1kCgXyM6"
}
ListElement {
name: "mywallet"
address: "RpiDC8c1SxrTNbxwSTVP6mAHhXvUAgCthoCfpVmUSm889M3zt5JfBxo6iRoAPmJkCPihSWNxhRtdTxnd7LXwcj1nbVd5NQyW1kCgXyM6"
}
ListElement {
name: "mywallet"
address: "RpiDC8c1SxrTNbxwSTVP6mAHhXvUAgCthoCfpVmUSm889M3zt5JfBxo6iRoAPmJkCPihSWNxhRtdTxnd7LXwcj1nbVd5NQyW1kCgXyM6"
}
}
}
RoundButton {
text: qsTr("+")
highlighted: true
anchors.margins: 10
anchors.right: parent.right
anchors.bottom: parent.bottom
} }
} }
KelvinDashboardGUI/Resources/Icons/exit.png

2.87 KiB

...@@ -106,7 +106,7 @@ ApplicationWindow { ...@@ -106,7 +106,7 @@ ApplicationWindow {
scale: 0.7 scale: 0.7
visible: false visible: false
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.right: imageDollars.left anchors.right: parent.left
} }
Image { Image {
...@@ -115,27 +115,7 @@ ApplicationWindow { ...@@ -115,27 +115,7 @@ ApplicationWindow {
scale: 0.7 scale: 0.7
visible: true visible: true
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.right: imageDollars.left
}
Image {
id: imageDollars
source: "qrc:/Resources/Icons/dollar.png"
scale: 0.7
visible: true
anchors.verticalCenter: parent.verticalCenter
anchors.right: labelBalance.right
anchors.leftMargin: 5
anchors.rightMargin: 5
}
Text {
id: labelBalance
text: "0"
font.pointSize: 16
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: 10
} }
} }
Rectangle Rectangle
......
...@@ -26,5 +26,6 @@ ...@@ -26,5 +26,6 @@
<file>Resources/Icons/home.png</file> <file>Resources/Icons/home.png</file>
<file>Resources/Icons/settings.png</file> <file>Resources/Icons/settings.png</file>
<file>Resources/Icons/dialog.png</file> <file>Resources/Icons/dialog.png</file>
<file>Resources/Icons/exit.png</file>
</qresource> </qresource>
</RCC> </RCC>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment