2021-09-14 12:24:47 +00:00
|
|
|
import QtQuick 2.13
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-09-14 12:24:47 +00:00
|
|
|
|
|
|
|
Grid {
|
|
|
|
id: root
|
|
|
|
columns: 2
|
|
|
|
spacing: 2
|
2021-09-14 16:23:02 +00:00
|
|
|
visible: (chainRepeater.count > 0)
|
|
|
|
property var model
|
2021-09-14 12:24:47 +00:00
|
|
|
|
|
|
|
Repeater {
|
|
|
|
id: chainRepeater
|
2021-09-14 16:23:02 +00:00
|
|
|
model: root.model
|
2021-09-14 12:24:47 +00:00
|
|
|
width: parent.width
|
|
|
|
height: parent.height
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
color: Utils.setColorAlpha(Style.current.blue, 0.1)
|
|
|
|
width: text.width + Style.current.halfPadding
|
|
|
|
height: text.height + Style.current.halfPadding
|
|
|
|
radius: Style.current.radius
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: text
|
|
|
|
text: model.chainName
|
|
|
|
color: Style.current.blue
|
|
|
|
font.pixelSize: Style.current.secondaryTextFontSize
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-09-14 16:23:02 +00:00
|
|
|
}
|