status-desktop/ui/imports/shared/popups/ChatCommandsPopup.qml

65 lines
1.7 KiB
QML
Raw Permalink Normal View History

import QtQuick 2.13
import QtQuick.Controls 2.13
import QtGraphicalEffects 1.13
import utils 1.0
import shared.popups 1.0
import shared.stores 1.0
import StatusQ.Controls 0.1
Dialog {
id: root
width: buttonRow.width
height: buttonRow.height
padding: 0
margins: 0
closePolicy: Popup.CloseOnReleaseOutside | Popup.CloseOnEscape
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 {
text: qsTr("Send transaction")
icon.color: Style.current.purple
icon.name: "send"
// this flow doesnt work, commenting it out till it is worked on
// onClicked: root.sendTransactionCommandButtonClicked()
}
StatusChatCommandButton {
text: qsTr("Request transaction")
icon.color: Style.current.orange
icon.name: "send"
icon.rotation: 180
// this flow doesnt work, commenting it out till it is worked on
// onClicked: root.receiveTransactionCommandButtonClicked()
2021-10-29 09:48:57 +00:00
}
}
}