From 8c44c4c8426a4368e063ae1286276b2fd5519468 Mon Sep 17 00:00:00 2001 From: Sander Ferdinand Date: Wed, 6 Dec 2017 22:52:36 +0100 Subject: [PATCH] Adressbook QML development --- components/AddressBookTable.qml | 6 +++--- pages/AddressBook.qml | 30 ++++++++---------------------- 2 files changed, 11 insertions(+), 25 deletions(-) diff --git a/components/AddressBookTable.qml b/components/AddressBookTable.qml index e542900c..b27e2082 100644 --- a/components/AddressBookTable.qml +++ b/components/AddressBookTable.qml @@ -37,13 +37,13 @@ ListView { footer: Rectangle { height: 127 width: listView.width - color: "#FFFFFF" + color: "transparent" Text { anchors.centerIn: parent font.family: "Arial" font.pixelSize: 14 - color: "#545454" + color: "#808080" text: qsTr("No more results") + translationManager.emptyString } } @@ -164,7 +164,7 @@ ListView { anchors.right: parent.right anchors.bottom: parent.bottom height: 1 - color: "#DBDBDB" + color: "#808080" } } } diff --git a/pages/AddressBook.qml b/pages/AddressBook.qml index 4b406af8..0e4f6b4c 100644 --- a/pages/AddressBook.qml +++ b/pages/AddressBook.qml @@ -34,7 +34,7 @@ import moneroComponents.AddressBookModel 1.0 Rectangle { id: root - color: "#F0EEEE" + color: "transparent" property var model ColumnLayout { @@ -44,12 +44,6 @@ Rectangle { anchors.right: parent.right spacing: 10 * scaleRatio - Label { - id: addressLabel - anchors.left: parent.left - text: qsTr("Address") + translationManager.emptyString - } - RowLayout { StandardButton { id: qrfinderButton @@ -70,32 +64,25 @@ Rectangle { LineEdit { Layout.fillWidth: true; id: addressLine + labelText: qsTr("Address") + translationManager.emptyString error: true; placeholderText: qsTr("4...") + translationManager.emptyString } } - Label { - id: paymentIdLabel - text: qsTr("Payment ID (Optional)") + translationManager.emptyString - tipText: qsTr("Payment ID

A unique user name used in
the address book. It is not a
transfer of information sent
during the transfer") - + translationManager.emptyString - } - LineEdit { id: paymentIdLine Layout.fillWidth: true; + labelText: qsTr("Payment ID (Optional)") + translationManager.emptyString placeholderText: qsTr("Paste 64 hexadecimal characters") + translationManager.emptyString - } - - Label { - id: descriptionLabel - text: qsTr("Description (Optional)") + translationManager.emptyString +// tipText: qsTr("Payment ID

A unique user name used in
the address book. It is not a
transfer of information sent
during the transfer") +// + translationManager.emptyString } LineEdit { id: descriptionLine Layout.fillWidth: true; + labelText: qsTr("Description (Optional)") + translationManager.emptyString placeholderText: qsTr("Give this entry a name or description") + translationManager.emptyString } @@ -132,7 +119,6 @@ Rectangle { } } } - } Rectangle { @@ -141,7 +127,7 @@ Rectangle { anchors.right: parent.right anchors.bottom: parent.bottom height: parent.height - addButton.y - addButton.height - 36 * scaleRatio - color: "#FFFFFF" + color: "transparent" Behavior on height { NumberAnimation { duration: 200; easing.type: Easing.InQuad } @@ -152,7 +138,7 @@ Rectangle { anchors.right: parent.right anchors.top: parent.top height: 1 - color: "#DBDBDB" + color: "#808080" } Scroll {