Skip to content

Commit 195d8c5

Browse files
committed
qml: Allow to specify subtext color
1 parent 0fc3fdc commit 195d8c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/qml/controls/Header.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ ColumnLayout {
2222
property string subtext: ""
2323
property int subtextMargin
2424
property int subtextSize: 15
25+
property color subtextColor: Theme.color.neutral9
2526
property bool wrap: true
2627

2728
spacing: 0
@@ -64,7 +65,7 @@ ColumnLayout {
6465
font.family: "Inter"
6566
font.styleName: "Regular"
6667
font.pixelSize: root.subtextSize
67-
color: Theme.color.neutral9
68+
color: root.subtextColor
6869
text: root.subtext
6970
horizontalAlignment: root.center ? Text.AlignHCenter : Text.AlignLeft
7071
wrapMode: wrap ? Text.WordWrap : Text.NoWrap

0 commit comments

Comments
 (0)