From a128581ae503649c8abac60def2a62f05e0e6e6c Mon Sep 17 00:00:00 2001 From: Sander Ferdinand Date: Sat, 13 Jan 2018 02:39:06 +0100 Subject: [PATCH] Restyled addressbook panel --- components/AddressBookTable.qml | 9 +++++---- pages/AddressBook.qml | 15 ++++----------- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/components/AddressBookTable.qml b/components/AddressBookTable.qml index de724bb8..cae68d2f 100644 --- a/components/AddressBookTable.qml +++ b/components/AddressBookTable.qml @@ -53,7 +53,7 @@ ListView { id: delegate height: 64 width: listView.width - color: index % 2 ? "#ee6000" : "#3e3e3e" + color: "transparent" z: listView.count - index function collapseDropdown() { dropdown.expanded = false } @@ -62,7 +62,7 @@ ListView { anchors.left: parent.left anchors.top: parent.top anchors.topMargin: 12 - width: text.length ? (descriptionArea.containsMouse ? dropdown.x - x - 12 : 139) : 0 + width: text.length ? (descriptionArea.containsMouse ? 139 : 139) : 0 font.family: "Arial" font.bold: true font.pixelSize: 19 @@ -89,6 +89,7 @@ ListView { font.pixelSize: 16 color: "#ffffff" text: address + readOnly: true } Text { @@ -111,7 +112,7 @@ ListView { anchors.leftMargin: 12 anchors.rightMargin: 12 anchors.right: dropdown.left - + readOnly: true font.family: "Arial" font.pixelSize: 13 @@ -164,7 +165,7 @@ ListView { anchors.right: parent.right anchors.bottom: parent.bottom height: 1 - color: "#808080" + color: "#404040" } } } diff --git a/pages/AddressBook.qml b/pages/AddressBook.qml index 27395a03..68598dc4 100644 --- a/pages/AddressBook.qml +++ b/pages/AddressBook.qml @@ -38,6 +38,7 @@ Rectangle { property var model ColumnLayout { + id: columnLayout anchors.margins: (isMobile)? 17 : 40 anchors.left: parent.left anchors.top: parent.top @@ -115,6 +116,9 @@ Rectangle { Rectangle { id: tableRect + anchors.top: columnLayout.bottom + anchors.leftMargin: (isMobile)? 17 : 40 + anchors.rightMargin: (isMobile)? 17 : 40 anchors.left: parent.left anchors.right: parent.right anchors.bottom: parent.bottom @@ -125,14 +129,6 @@ Rectangle { NumberAnimation { duration: 200; easing.type: Easing.InQuad } } - Rectangle { - anchors.left: parent.left - anchors.right: parent.right - anchors.top: parent.top - height: 1 - color: "#808080" - } - Scroll { id: flickableScroll anchors.right: table.right @@ -148,9 +144,6 @@ Rectangle { anchors.right: parent.right anchors.top: parent.top anchors.bottom: parent.bottom - anchors.topMargin: 14 - anchors.leftMargin: 14 - anchors.rightMargin: 14 onContentYChanged: flickableScroll.flickableContentYChanged() model: root.model }