Skip to content

Commit df0104b

Browse files
committed
qml: allow to specify icon color in icon button for NavButton
1 parent b3938cc commit df0104b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/qml/controls/NavButton.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ AbstractButton {
1313
property int textSize: 18
1414
property url iconSource: ""
1515
property Rectangle iconBackground: null
16+
property color iconColor: Theme.color.neutral9
1617

1718
padding: 0
1819
background: Rectangle {
@@ -55,7 +56,7 @@ AbstractButton {
5556
height: root.iconHeight
5657
width: root.iconWidth
5758
icon.source: root.iconSource
58-
icon.color: Theme.color.neutral9
59+
icon.color: root.iconColor
5960
icon.height: root.iconHeight
6061
icon.width: root.iconWidth
6162
background: root.iconBackground

0 commit comments

Comments
 (0)