status-desktop/ui/app/AppLayouts/Wallet/panels/WalletFooter.qml

84 lines
1.7 KiB
QML
Raw Normal View History

import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Layouts 1.13
import StatusQ.Popups 0.1
import StatusQ.Controls 0.1
import StatusQ.Core.Theme 0.1
import utils 1.0
import "../popups"
Rectangle {
id: walletFooter
property var sendModal
property var walletStore
height: 61
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
StatusModalDivider {
anchors.top: parent.top
width: parent.width
}
RowLayout {
anchors.centerIn: parent
height: parent.height
spacing: Style.current.padding
StatusFlatButton {
2022-07-21 12:15:02 +00:00
objectName: "walletFooterSendButton"
icon.name: "send"
text: qsTr("Send")
onClicked: function() {
sendModal.open()
}
}
StatusFlatButton {
icon.name: "receive"
text: qsTr("Receive")
onClicked: function () {
Global.openPopup(receiveModalComponent);
}
}
StatusFlatButton {
id: buySellBtn
icon.name: "token"
text: qsTr("Buy / Sell")
onClicked: function () {
Global.openPopup(buySellModal);
}
}
StatusFlatButton {
id: bridgeBtn
icon.name: "bridge"
text: qsTr("Bridge")
onClicked: function () {
sendModal.isBridgeTx = true
sendModal.open()
}
}
}
Component {
id: receiveModalComponent
ReceiveModal {
selectedAccount: walletStore.currentAccount
anchors.centerIn: parent
}
}
Component {
id: buySellModal
CryptoServicesModal {}
}
}