Skip to content

Commit 403d57e

Browse files
committed
qml: allow to specify the header color
1 parent 48444cb commit 403d57e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/qml/controls/Header.qml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ColumnLayout {
1313
property int headerMargin
1414
property int headerSize: 28
1515
property bool headerBold: false
16+
property color headerColor: Theme.color.neutral9
1617
property string description: ""
1718
property int descriptionMargin: 10
1819
property int descriptionSize: 18
@@ -30,10 +31,14 @@ ColumnLayout {
3031
font.family: "Inter"
3132
font.styleName: root.headerBold ? "Semi Bold" : "Regular"
3233
font.pixelSize: root.headerSize
33-
color: Theme.color.neutral9
34+
color: root.headerColor
3435
text: root.header
3536
horizontalAlignment: center ? Text.AlignHCenter : Text.AlignLeft
3637
wrapMode: wrap ? Text.WordWrap : Text.NoWrap
38+
39+
Behavior on color {
40+
ColorAnimation { duration: 150 }
41+
}
3742
}
3843
Loader {
3944
Layout.fillWidth: true

0 commit comments

Comments
 (0)