mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
Restyled addressbook panel
This commit is contained in:
parent
6677a185f8
commit
a128581ae5
2 changed files with 9 additions and 15 deletions
|
@ -53,7 +53,7 @@ ListView {
|
||||||
id: delegate
|
id: delegate
|
||||||
height: 64
|
height: 64
|
||||||
width: listView.width
|
width: listView.width
|
||||||
color: index % 2 ? "#ee6000" : "#3e3e3e"
|
color: "transparent"
|
||||||
z: listView.count - index
|
z: listView.count - index
|
||||||
function collapseDropdown() { dropdown.expanded = false }
|
function collapseDropdown() { dropdown.expanded = false }
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ ListView {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: 12
|
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.family: "Arial"
|
||||||
font.bold: true
|
font.bold: true
|
||||||
font.pixelSize: 19
|
font.pixelSize: 19
|
||||||
|
@ -89,6 +89,7 @@ ListView {
|
||||||
font.pixelSize: 16
|
font.pixelSize: 16
|
||||||
color: "#ffffff"
|
color: "#ffffff"
|
||||||
text: address
|
text: address
|
||||||
|
readOnly: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
@ -111,7 +112,7 @@ ListView {
|
||||||
anchors.leftMargin: 12
|
anchors.leftMargin: 12
|
||||||
anchors.rightMargin: 12
|
anchors.rightMargin: 12
|
||||||
anchors.right: dropdown.left
|
anchors.right: dropdown.left
|
||||||
|
readOnly: true
|
||||||
|
|
||||||
font.family: "Arial"
|
font.family: "Arial"
|
||||||
font.pixelSize: 13
|
font.pixelSize: 13
|
||||||
|
@ -164,7 +165,7 @@ ListView {
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
height: 1
|
height: 1
|
||||||
color: "#808080"
|
color: "#404040"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,7 @@ Rectangle {
|
||||||
property var model
|
property var model
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
id: columnLayout
|
||||||
anchors.margins: (isMobile)? 17 : 40
|
anchors.margins: (isMobile)? 17 : 40
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
@ -115,6 +116,9 @@ Rectangle {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: tableRect
|
id: tableRect
|
||||||
|
anchors.top: columnLayout.bottom
|
||||||
|
anchors.leftMargin: (isMobile)? 17 : 40
|
||||||
|
anchors.rightMargin: (isMobile)? 17 : 40
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
|
@ -125,14 +129,6 @@ Rectangle {
|
||||||
NumberAnimation { duration: 200; easing.type: Easing.InQuad }
|
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 {
|
Scroll {
|
||||||
id: flickableScroll
|
id: flickableScroll
|
||||||
anchors.right: table.right
|
anchors.right: table.right
|
||||||
|
@ -148,9 +144,6 @@ Rectangle {
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.topMargin: 14
|
|
||||||
anchors.leftMargin: 14
|
|
||||||
anchors.rightMargin: 14
|
|
||||||
onContentYChanged: flickableScroll.flickableContentYChanged()
|
onContentYChanged: flickableScroll.flickableContentYChanged()
|
||||||
model: root.model
|
model: root.model
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue