@@ -34,63 +34,67 @@ Page {
34
34
color: Theme .color .neutral0
35
35
}
36
36
37
- ListView {
38
- id: listView
39
- clip: true
37
+ ColumnLayout {
38
+ id: header
40
39
width: Math .min (parent .width - 40 , 450 )
41
- height: parent .height
42
40
anchors .horizontalCenter : parent .horizontalCenter
43
- model: root .wallet .coinsListModel
44
- spacing: 15
45
41
46
- header: ColumnLayout {
47
- width: listView .width
48
- RowLayout {
42
+ RowLayout {
43
+ Layout .fillWidth : true
44
+ spacing: 15
45
+ CoreText {
46
+ Layout .alignment : Qt .AlignLeft
49
47
Layout .fillWidth : true
50
- spacing: 15
51
- CoreText {
52
- Layout .alignment : Qt .AlignLeft
53
- Layout .fillWidth : true
54
- Layout .preferredWidth : 0
55
- font .pixelSize : 18
56
- color: Theme .color .neutral9
57
- elide: Text .ElideMiddle
58
- wrapMode: Text .NoWrap
59
- horizontalAlignment: Text .AlignLeft
60
- text: qsTr (" Total selected" )
61
- }
62
- CoreText {
63
- Layout .alignment : Qt .AlignRight
64
- color: Theme .color .neutral9
65
- font .pixelSize : 18
66
- text: root .wallet .coinsListModel .totalSelected
67
- }
48
+ Layout .preferredWidth : 0
49
+ font .pixelSize : 18
50
+ color: Theme .color .neutral9
51
+ elide: Text .ElideMiddle
52
+ wrapMode: Text .NoWrap
53
+ horizontalAlignment: Text .AlignLeft
54
+ text: qsTr (" Total selected" )
68
55
}
69
- RowLayout {
70
- Layout .bottomMargin : 30
71
- CoreText {
72
- Layout . alignment : Qt . AlignLeft
73
- Layout . fillWidth : true
74
- Layout . preferredWidth : 0
75
- font . pixelSize : 15
76
- color : Theme . color . neutral7
77
- elide : Text . ElideMiddle
78
- wrapMode : Text . NoWrap
79
- horizontalAlignment : Text .AlignLeft
80
- text : if ( root . wallet . coinsListModel . overRequiredAmount ) {
81
- qsTr ( " Over required amount " )
82
- } else {
83
- qsTr ( " Remaining to select " )
84
- }
85
- }
86
- CoreText {
87
- Layout . alignment : Qt . AlignRight
88
- font . pixelSize : 15
89
- color : Theme . color . neutral7
90
- text : root . wallet . coinsListModel . changeAmount
56
+ CoreText {
57
+ Layout .alignment : Qt . AlignRight
58
+ color : Theme . color . neutral9
59
+ font . pixelSize : 18
60
+ text : root . wallet . coinsListModel . totalSelected
61
+ }
62
+ }
63
+ RowLayout {
64
+ Layout . bottomMargin : 30
65
+ CoreText {
66
+ Layout . alignment : Qt .AlignLeft
67
+ Layout . fillWidth : true
68
+ Layout . preferredWidth : 0
69
+ font . pixelSize : 15
70
+ color : Theme . color . neutral7
71
+ elide : Text . ElideMiddle
72
+ wrapMode : Text . NoWrap
73
+ horizontalAlignment : Text . AlignLeft
74
+ text : if ( root . wallet . coinsListModel . overRequiredAmount ) {
75
+ qsTr ( " Over required amount " )
76
+ } else {
77
+ qsTr ( " Remaining to select " )
91
78
}
92
79
}
80
+ CoreText {
81
+ Layout .alignment : Qt .AlignRight
82
+ font .pixelSize : 15
83
+ color: Theme .color .neutral7
84
+ text: root .wallet .coinsListModel .changeAmount
85
+ }
93
86
}
87
+ }
88
+
89
+ ListView {
90
+ id: listView
91
+ clip: true
92
+ width: Math .min (parent .width - 40 , 450 )
93
+ height: parent .height - header .height - 20
94
+ anchors .top : header .bottom
95
+ anchors .horizontalCenter : parent .horizontalCenter
96
+ model: root .wallet .coinsListModel
97
+ spacing: 15
94
98
95
99
delegate: ItemDelegate {
96
100
id: delegate
@@ -113,13 +117,13 @@ Page {
113
117
114
118
leftPadding: 0
115
119
rightPadding: 0
116
- topPadding: 14
120
+ topPadding: 0
117
121
bottomPadding: 14
118
122
width: listView .width
119
123
120
124
background: Item {
121
125
Separator {
122
- anchors .top : parent .top
126
+ anchors .bottom : parent .bottom
123
127
width: parent .width
124
128
}
125
129
}
0 commit comments