Adressbook QML development

This commit is contained in:
Sander Ferdinand 2017-12-06 22:52:36 +01:00 committed by moneromooo-monero
parent df21e36f5b
commit 8c44c4c842
2 changed files with 11 additions and 25 deletions

View file

@ -37,13 +37,13 @@ ListView {
footer: Rectangle { footer: Rectangle {
height: 127 height: 127
width: listView.width width: listView.width
color: "#FFFFFF" color: "transparent"
Text { Text {
anchors.centerIn: parent anchors.centerIn: parent
font.family: "Arial" font.family: "Arial"
font.pixelSize: 14 font.pixelSize: 14
color: "#545454" color: "#808080"
text: qsTr("No more results") + translationManager.emptyString text: qsTr("No more results") + translationManager.emptyString
} }
} }
@ -164,7 +164,7 @@ ListView {
anchors.right: parent.right anchors.right: parent.right
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
height: 1 height: 1
color: "#DBDBDB" color: "#808080"
} }
} }
} }

View file

@ -34,7 +34,7 @@ import moneroComponents.AddressBookModel 1.0
Rectangle { Rectangle {
id: root id: root
color: "#F0EEEE" color: "transparent"
property var model property var model
ColumnLayout { ColumnLayout {
@ -44,12 +44,6 @@ Rectangle {
anchors.right: parent.right anchors.right: parent.right
spacing: 10 * scaleRatio spacing: 10 * scaleRatio
Label {
id: addressLabel
anchors.left: parent.left
text: qsTr("Address") + translationManager.emptyString
}
RowLayout { RowLayout {
StandardButton { StandardButton {
id: qrfinderButton id: qrfinderButton
@ -70,32 +64,25 @@ Rectangle {
LineEdit { LineEdit {
Layout.fillWidth: true; Layout.fillWidth: true;
id: addressLine id: addressLine
labelText: qsTr("Address") + translationManager.emptyString
error: true; error: true;
placeholderText: qsTr("4...") + translationManager.emptyString placeholderText: qsTr("4...") + translationManager.emptyString
} }
} }
Label {
id: paymentIdLabel
text: qsTr("Payment ID <font size='2'>(Optional)</font>") + translationManager.emptyString
tipText: qsTr("<b>Payment ID</b><br/><br/>A unique user name used in<br/>the address book. It is not a<br/>transfer of information sent<br/>during the transfer")
+ translationManager.emptyString
}
LineEdit { LineEdit {
id: paymentIdLine id: paymentIdLine
Layout.fillWidth: true; Layout.fillWidth: true;
labelText: qsTr("Payment ID <font size='2'>(Optional)</font>") + translationManager.emptyString
placeholderText: qsTr("Paste 64 hexadecimal characters") + translationManager.emptyString placeholderText: qsTr("Paste 64 hexadecimal characters") + translationManager.emptyString
} // tipText: qsTr("<b>Payment ID</b><br/><br/>A unique user name used in<br/>the address book. It is not a<br/>transfer of information sent<br/>during the transfer")
// + translationManager.emptyString
Label {
id: descriptionLabel
text: qsTr("Description <font size='2'>(Optional)</font>") + translationManager.emptyString
} }
LineEdit { LineEdit {
id: descriptionLine id: descriptionLine
Layout.fillWidth: true; Layout.fillWidth: true;
labelText: qsTr("Description <font size='2'>(Optional)</font>") + translationManager.emptyString
placeholderText: qsTr("Give this entry a name or description") + translationManager.emptyString placeholderText: qsTr("Give this entry a name or description") + translationManager.emptyString
} }
@ -132,7 +119,6 @@ Rectangle {
} }
} }
} }
} }
Rectangle { Rectangle {
@ -141,7 +127,7 @@ Rectangle {
anchors.right: parent.right anchors.right: parent.right
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
height: parent.height - addButton.y - addButton.height - 36 * scaleRatio height: parent.height - addButton.y - addButton.height - 36 * scaleRatio
color: "#FFFFFF" color: "transparent"
Behavior on height { Behavior on height {
NumberAnimation { duration: 200; easing.type: Easing.InQuad } NumberAnimation { duration: 200; easing.type: Easing.InQuad }
@ -152,7 +138,7 @@ Rectangle {
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
height: 1 height: 1
color: "#DBDBDB" color: "#808080"
} }
Scroll { Scroll {