aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Ferdinand <sa.ferdinand@gmail.com>2018-01-13 02:39:06 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-29 23:04:02 +0100
commita128581ae503649c8abac60def2a62f05e0e6e6c (patch)
treeeac6990e3f705550b1c70d3072a2f243b1aeed09
parent6677a185f8ec869a5b8bd8adce349b80a3c9ddd4 (diff)
downloadmonzero-gui-a128581ae503649c8abac60def2a62f05e0e6e6c.tar.gz
monzero-gui-a128581ae503649c8abac60def2a62f05e0e6e6c.tar.xz
monzero-gui-a128581ae503649c8abac60def2a62f05e0e6e6c.zip
Restyled addressbook panel
-rw-r--r--components/AddressBookTable.qml9
-rw-r--r--pages/AddressBook.qml15
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
}