Skip to content

Commit 191edb7

Browse files
committed
qml: Add Multiple Recipients toggle to Send menu
1 parent 0cb338c commit 191edb7

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

qml/controls/SendOptionsPopup.qml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,36 @@ OptionPopup {
1313
id: root
1414

1515
property alias coinControlEnabled: coinControlToggle.checked
16+
property alias multipleRecipientsEnabled: multipleRecipientsToggle.checked
17+
18+
implicitWidth: 300
19+
implicitHeight: 100
1620

1721
clip: true
1822
modal: true
1923
dim: false
2024

21-
EllipsisMenuToggleItem {
22-
id: coinControlToggle
25+
ColumnLayout {
26+
id: columnLayout
2327
anchors.centerIn: parent
24-
text: qsTr("Enable Coin control")
28+
anchors.margins: 10
29+
spacing: 0
30+
31+
EllipsisMenuToggleItem {
32+
id: coinControlToggle
33+
Layout.fillWidth: true
34+
text: qsTr("Enable Coin control")
35+
}
36+
37+
Separator {
38+
id: separator
39+
Layout.fillWidth: true
40+
}
41+
42+
EllipsisMenuToggleItem {
43+
id: multipleRecipientsToggle
44+
Layout.fillWidth: true
45+
text: qsTr("Multiple Recipients")
46+
}
2547
}
2648
}

qml/pages/wallet/Send.qml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ PageStack {
3333
Settings {
3434
id: settings
3535
property alias coinControlEnabled: sendOptionsPopup.coinControlEnabled
36+
property alias multipleRecipientsEnabled: sendOptionsPopup.multipleRecipientsEnabled
3637
}
3738

3839
ScrollView {
@@ -55,6 +56,7 @@ PageStack {
5556
Layout.fillWidth: true
5657
Layout.topMargin: 30
5758
Layout.bottomMargin: 20
59+
5860
CoreText {
5961
id: title
6062
anchors.left: parent.left
@@ -64,6 +66,7 @@ PageStack {
6466
color: Theme.color.neutral9
6567
bold: true
6668
}
69+
6770
EllipsisMenuButton {
6871
id: menuButton
6972
anchors.right: parent.right
@@ -78,8 +81,6 @@ PageStack {
7881
id: sendOptionsPopup
7982
x: menuButton.x - width + menuButton.width
8083
y: menuButton.y + menuButton.height
81-
width: 300
82-
height: 50
8384
}
8485
}
8586

0 commit comments

Comments
 (0)