mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-08 14:33:23 +00:00
* fix: fixed links on page with service description * fix: fixed subscription text color * chore: update ru translations * chore: add save button * fix: ru translation fixes
41 lines
807 B
QML
41 lines
807 B
QML
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
|
|
link: !!model.link
|
|
}
|
|
}
|
|
}
|
|
}
|