1
0

qml: server list styling, group indicator per chain

This commit is contained in:
Sander van Grieken
2022-12-31 12:52:10 +01:00
parent f774174c85
commit c51b6dd75a
3 changed files with 72 additions and 12 deletions

View File

@@ -15,15 +15,48 @@ ItemDelegate {
anchors {
left: parent.left
right: parent.right
leftMargin: constants.paddingSmall
leftMargin: constants.paddingXLarge
rightMargin: constants.paddingSmall
}
columns: 2
Label {
text: model.address
columns: 3
// topmargin
Rectangle {
Layout.columnSpan: 3
Layout.preferredHeight: constants.paddingSmall
color: 'transparent'
}
Item {
Layout.preferredWidth: constants.iconSizeSmall
Layout.preferredHeight: constants.iconSizeSmall
Label {
text: '❤'
anchors.centerIn: parent
visible: model.is_primary
}
}
Item {
Layout.preferredWidth: constants.iconSizeMedium
Layout.preferredHeight: constants.iconSizeMedium
Image {
source: '../../../icons/status_connected.png'
width: constants.iconSizeMedium
height: constants.iconSizeMedium
visible: model.is_connected
}
}
Label {
text: model.chain
Layout.fillWidth: true
text: model.address
}
// bottommargin
Rectangle {
Layout.columnSpan: 3
Layout.preferredHeight: constants.paddingSmall
color: 'transparent'
}
}
}