Files
amnezia-client/client/ui/qml/Components/BenefitsPanel.qml
T

41 lines
807 B
QML
Raw Normal View History

2026-04-08 11:21:12 +07:00
import QtQuick
import QtQuick.Layouts
import "."
import Style 1.0
Rectangle {
id: root
property var benefitsModel: null
visible: benefitsModel && benefitsModel.rowCount() > 0
radius: 16
color: AmneziaStyle.color.benefitsPanelBackground
implicitHeight: inner.implicitHeight + 24
ColumnLayout {
id: inner
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.margins: 12
spacing: 20
Repeater {
model: benefitsModel
delegate: BenefitRow {
Layout.fillWidth: true
iconSource: model.icon
titleText: model.title
bodyText: model.body
2026-04-10 21:24:00 +07:00
link: !!model.link
2026-04-08 11:21:12 +07:00
}
}
}
}