1
0

qml: add serverlistmodel.py, add server list to ServerConfigDialog.qml

This commit is contained in:
Sander van Grieken
2022-12-30 16:22:22 +01:00
parent f13b43d546
commit f774174c85
6 changed files with 212 additions and 9 deletions

View File

@@ -2,25 +2,26 @@ import QtQuick 2.6
import QtQuick.Controls.Material 2.0
Rectangle {
property color baseColor: Material.background
Rectangle {
anchors { left: parent.left; top: parent.top; right: parent.right }
height: 1
color: Qt.darker(Material.background, 1.50)
color: Qt.darker(baseColor, 1.50)
}
Rectangle {
anchors { left: parent.left; top: parent.top; bottom: parent.bottom }
width: 1
color: Qt.darker(Material.background, 1.50)
color: Qt.darker(baseColor, 1.50)
}
Rectangle {
anchors { left: parent.left; bottom: parent.bottom; right: parent.right }
height: 1
color: Qt.lighter(Material.background, 1.50)
color: Qt.lighter(baseColor, 1.50)
}
Rectangle {
anchors { right: parent.right; top: parent.top; bottom: parent.bottom }
width: 1
color: Qt.lighter(Material.background, 1.50)
color: Qt.lighter(baseColor, 1.50)
}
color: Qt.darker(Material.background, 1.15)
color: Qt.darker(baseColor, 1.15)
}

View File

@@ -0,0 +1,29 @@
import QtQuick 2.6
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.0
import QtQuick.Controls.Material 2.0
import org.electrum 1.0
ItemDelegate {
id: root
height: itemLayout.height
width: ListView.view.width
GridLayout {
id: itemLayout
anchors {
left: parent.left
right: parent.right
leftMargin: constants.paddingSmall
rightMargin: constants.paddingSmall
}
columns: 2
Label {
text: model.address
}
Label {
text: model.chain
}
}
}