File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ AbstractButton {
12
12
property int iconWidth: 30
13
13
property int textSize: 18
14
14
property url iconSource: " "
15
+ property Rectangle iconBackground: null
16
+ property color iconColor: Theme .color .neutral9
15
17
16
18
padding: 0
17
19
background: Rectangle {
@@ -54,10 +56,10 @@ AbstractButton {
54
56
height: root .iconHeight
55
57
width: root .iconWidth
56
58
icon .source : root .iconSource
57
- icon .color : Theme . color . neutral9
59
+ icon .color : root . iconColor
58
60
icon .height : root .iconHeight
59
61
icon .width : root .iconWidth
60
- background: null
62
+ background: root . iconBackground
61
63
}
62
64
}
63
65
Loader {
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ ApplicationWindow {
53
53
navRightDetail: NavButton {
54
54
iconSource: " image://images/gear"
55
55
iconHeight: 24
56
+ iconWidth: 24
56
57
onClicked: node_swipe .incrementCurrentIndex ()
57
58
}
58
59
}
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ Page {
21
21
navRightDetail: NavButton {
22
22
iconSource: " image://images/info"
23
23
iconHeight: 24
24
+ iconWidth: 24
25
+ iconColor: Theme .color .neutral0
26
+ iconBackground: Rectangle {
27
+ radius: 12
28
+ color: Theme .color .neutral9
29
+ }
24
30
onClicked: {
25
31
introductions .incrementCurrentIndex ()
26
32
}
You can’t perform that action at this time.
0 commit comments