@@ -8,14 +8,16 @@ import QtQuick.Layouts 1.15
8
8
9
9
ColumnLayout {
10
10
id: root
11
- property bool bold: false
12
11
property bool center: true
13
12
required property string header
14
13
property int headerMargin
15
14
property int headerSize: 28
15
+ property bool headerBold: false
16
16
property string description: " "
17
17
property int descriptionMargin: 10
18
18
property int descriptionSize: 18
19
+ property string descriptionColor: Theme .color .neutral8
20
+ property bool descriptionBold: false
19
21
property string subtext: " "
20
22
property int subtextMargin
21
23
property int subtextSize: 15
@@ -26,7 +28,7 @@ ColumnLayout {
26
28
Layout .fillWidth : true
27
29
topPadding: root .headerMargin
28
30
font .family : " Inter"
29
- font .styleName : root .bold ? " Semi Bold" : " Regular"
31
+ font .styleName : root .headerBold ? " Semi Bold" : " Regular"
30
32
font .pixelSize : root .headerSize
31
33
color: Theme .color .neutral9
32
34
text: root .header
@@ -40,9 +42,9 @@ ColumnLayout {
40
42
sourceComponent: Label {
41
43
topPadding: root .descriptionMargin
42
44
font .family : " Inter"
43
- font .styleName : " Regular"
45
+ font .styleName : root . descriptionBold ? " Semi Bold " : " Regular"
44
46
font .pixelSize : root .descriptionSize
45
- color: Theme . color . neutral8
47
+ color: root . descriptionColor
46
48
text: root .description
47
49
horizontalAlignment: root .center ? Text .AlignHCenter : Text .AlignLeft
48
50
wrapMode: wrap ? Text .WordWrap : Text .NoWrap
0 commit comments