status-desktop/ui/shared/status/StatusChatCommandsPopup.qml

69 lines
1.7 KiB
QML

import QtQuick 2.13
import QtQuick.Controls 2.13
import QtGraphicalEffects 1.13
import "../../imports"
import "../../shared"
Popup {
id: root
width: buttonRow.width
height: buttonRow.height
padding: 0
margins: 0
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"
icon.width: 16
icon.height: 18
onClicked: function () {
root.sendTransactionCommandButtonClicked()
}
}
StatusChatCommandButton {
//% "Request transaction"
text: qsTrId("request-transaction")
icon.color: Style.current.orange
icon.name: "send"
icon.width: 16
icon.height: 18
iconRotation: 180
onClicked: function () {
root.receiveTransactionCommandButtonClicked()
}
}
}
}