File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -9,25 +9,38 @@ import org.bitcoincore.qt 1.0
9
9
Button {
10
10
id: root
11
11
hoverEnabled: AppMode .isDesktop
12
+
13
+ property color textColor: Theme .color .white
14
+ property color backgroundColor: Theme .color .orange
15
+ property color backgroundHoverColor: Theme .color .orangeLight1
16
+ property color backgroundPressedColor: Theme .color .orangeLight2
17
+ property color borderColor: " transparent"
18
+ property color borderHoverColor: " transparent"
19
+ property color borderPressedColor: " transparent"
20
+
12
21
contentItem: CoreText {
13
22
text: parent .text
23
+ color: root .textColor
14
24
bold: true
15
25
font .pixelSize : 18
16
26
}
17
27
background: Rectangle {
18
28
id: bg
19
29
implicitHeight: 46
20
- color: Theme .color .orange
30
+ color: backgroundColor
31
+ border .color : borderColor
21
32
radius: 5
22
33
23
34
states: [
24
35
State {
25
36
name: " PRESSED" ; when: root .pressed
26
- PropertyChanges { target: bg; color: Theme .color .orangeLight2 }
37
+ PropertyChanges { target: bg; color: backgroundPressedColor }
38
+ PropertyChanges { target: bg; border .color : borderPressedColor }
27
39
},
28
40
State {
29
41
name: " HOVER" ; when: root .hovered
30
- PropertyChanges { target: bg; color: Theme .color .orangeLight1 }
42
+ PropertyChanges { target: bg; color: backgroundHoverColor }
43
+ PropertyChanges { target: bg; border .color : borderHoverColor }
31
44
}
32
45
]
33
46
You can’t perform that action at this time.
0 commit comments