qml: add serverlistmodel.py, add server list to ServerConfigDialog.qml
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
29
electrum/gui/qml/components/controls/ServerDelegate.qml
Normal file
29
electrum/gui/qml/components/controls/ServerDelegate.qml
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user