-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathInfoCard.qml
45 lines (43 loc) · 1.11 KB
/
InfoCard.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
Pane {
property alias icon: icon_image.source
property alias title: title_label.text
property alias description: description_label.text
Layout.topMargin: 10
Layout.fillWidth: true
Layout.maximumWidth: 325
background: Rectangle {
radius: 4
color: '#222226'
}
leftPadding: 50
rightPadding: 50
contentItem: ColumnLayout {
Image {
Layout.alignment: Qt.AlignCenter
id: icon_image
}
Label {
Layout.fillWidth: true
id: title_label
color: '#FFF'
font.pixelSize: 14
font.weight: 700
horizontalAlignment: Qt.AlignHCenter
text: 'Safe Environment'
wrapMode: Label.WordWrap
}
Label {
Layout.fillWidth: true
id: description_label
color: '#FFF'
opacity: 0.6
font.pixelSize: 12
font.weight: 400
horizontalAlignment: Qt.AlignHCenter
wrapMode: Label.WordWrap
}
}
}