@@ -15,37 +15,34 @@ Button {
15
15
property color textColor: Theme .color .neutral7
16
16
property color textHoverColor: Theme .color .orange
17
17
property color textActiveColor: Theme .color .orange
18
- property color iconColor: " transparent"
19
- property string iconSource: " "
20
- property bool showBalance: true
21
- property bool showIcon: true
22
18
23
19
hoverEnabled: AppMode .isDesktop
24
- implicitHeight: 46
20
+ implicitHeight: 30
25
21
implicitWidth: 220
26
- bottomPadding: 10
27
- topPadding: 0
28
22
29
- contentItem: RowLayout {
30
- implicitWidth: addIcon .size + addText .width
31
- implicitHeight: 45
32
- Icon {
33
- id: addIcon
34
- Layout .alignment : Qt .AlignHCenter
35
- source: " image://images/plus"
36
- color: Theme .color .neutral8
37
- size: 14
38
- topPadding: 5
39
- bottomPadding: 10
40
- }
41
- CoreText {
42
- id: addText
43
- Layout .alignment : Qt .AlignHCenter
44
- text: qsTr (" Add Wallet" )
45
- color: Theme .color .neutral9
46
- font .pixelSize : 15
47
- topPadding: 5
48
- bottomPadding: 10
23
+ contentItem: Item {
24
+ anchors .fill : parent
25
+ RowLayout {
26
+ anchors .centerIn : parent
27
+ spacing: 3
28
+ Icon {
29
+ id: addIcon
30
+ Layout .alignment : Qt .AlignRight
31
+ source: " image://images/plus"
32
+ color: Theme .color .neutral7
33
+ size: 16
34
+ Layout .minimumWidth : 16
35
+ Layout .preferredWidth : 16
36
+ Layout .maximumWidth : 16
37
+ }
38
+ CoreText {
39
+ id: addText
40
+ Layout .fillHeight : true
41
+ Layout .alignment : Qt .AlignLeft
42
+ text: qsTr (" Add Wallet" )
43
+ color: Theme .color .neutral7
44
+ font .pixelSize : 15
45
+ }
49
46
}
50
47
}
51
48
@@ -54,8 +51,6 @@ Button {
54
51
height: 30
55
52
width: 220
56
53
radius: 5
57
- anchors .topMargin : 5
58
- anchors .bottomMargin : 10
59
54
color: Theme .color .neutral3
60
55
visible: root .hovered || root .checked
61
56
@@ -74,6 +69,8 @@ Button {
74
69
},
75
70
State {
76
71
name: " HOVER" ; when: root .hovered
72
+ PropertyChanges { target: addText; color: textHoverColor }
73
+ PropertyChanges { target: addIcon; color: textHoverColor }
77
74
}
78
75
]
79
76
}
0 commit comments