2020-09-29 08:21:49 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtGraphicalEffects 1.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared.popups 1.0
|
2021-12-08 21:20:43 +00:00
|
|
|
import shared.stores 1.0
|
2021-10-25 14:06:32 +00:00
|
|
|
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
2020-09-29 08:21:49 +00:00
|
|
|
Popup {
|
|
|
|
id: root
|
|
|
|
width: buttonRow.width
|
|
|
|
height: buttonRow.height
|
|
|
|
padding: 0
|
|
|
|
margins: 0
|
2021-09-27 10:31:40 +00:00
|
|
|
closePolicy: Popup.CloseOnReleaseOutsideParent | Popup.CloseOnEscape
|
2020-09-29 08:21:49 +00:00
|
|
|
|
|
|
|
signal sendTransactionCommandButtonClicked()
|
|
|
|
signal receiveTransactionCommandButtonClicked()
|
|
|
|
|
|
|
|
background: Rectangle {
|
|
|
|
color: Style.current.background
|
|
|
|
radius: Style.current.radius
|
|
|
|
border.width: 0
|
|
|
|
layer.enabled: true
|
|
|
|
layer.effect: DropShadow {
|
|
|
|
verticalOffset: 3
|
|
|
|
radius: 8
|
|
|
|
samples: 15
|
|
|
|
fast: true
|
|
|
|
cached: true
|
|
|
|
color: "#22000000"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Row {
|
|
|
|
id: buttonRow
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 0
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 0
|
|
|
|
padding: Style.current.halfPadding
|
|
|
|
spacing: Style.current.halfPadding
|
|
|
|
|
|
|
|
StatusChatCommandButton {
|
|
|
|
//% "Send transaction"
|
|
|
|
text: qsTrId("send-transaction")
|
|
|
|
icon.color: Style.current.purple
|
|
|
|
icon.name: "send"
|
2022-04-11 09:26:13 +00:00
|
|
|
onClicked: root.sendTransactionCommandButtonClicked()
|
2020-09-29 08:21:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
StatusChatCommandButton {
|
|
|
|
//% "Request transaction"
|
|
|
|
text: qsTrId("request-transaction")
|
|
|
|
icon.color: Style.current.orange
|
|
|
|
icon.name: "send"
|
2021-10-25 14:06:32 +00:00
|
|
|
icon.rotation: 180
|
2022-04-11 09:26:13 +00:00
|
|
|
onClicked: root.receiveTransactionCommandButtonClicked()
|
2021-10-29 09:48:57 +00:00
|
|
|
}
|
2020-09-29 08:21:49 +00:00
|
|
|
}
|
|
|
|
}
|