Skip to content

Commit b3938cc

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

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
@@ -12,6 +12,7 @@ AbstractButton {
1212
property int iconWidth: 30
1313
property int textSize: 18
1414
property url iconSource: ""
15+
property Rectangle iconBackground: null
1516

1617
padding: 0
1718
background: Rectangle {
@@ -57,7 +58,7 @@ AbstractButton {
5758
icon.color: Theme.color.neutral9
5859
icon.height: root.iconHeight
5960
icon.width: root.iconWidth
60-
background: null
61+
background: root.iconBackground
6162
}
6263
}
6364
Loader {

0 commit comments

Comments
 (0)