status-desktop/ui/app/AppLayouts/WalletV2/panels/WalletFooterPanel.qml
Alexandra Betouni 4ee21ada05 feat(desktop) Added image function in Style
Introduced Style.svg() Style.png() Style.emoji() and
Style.icon() in Style.qml. Those should be used to
set the source in Images instead of using relative
paths. Usage:
Image {
   source: Style.svg("check)
   ....

Also moved all Singletons inside a new "utils"
folder and made it a QML module, to use
import utils 1.0 instead of relative paths

Closes #3678
2021-09-28 15:28:00 -04:00

57 lines
1.2 KiB
QML

import QtQuick 2.14
import QtQuick.Controls 2.14
import utils 1.0
import "../controls"
import "../popups"
Item {
id: walletFooterRoot
height: 50
width: parent.width
property var walletV2Model
Rectangle {
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
height: 1
color: Style.current.separator
}
Row {
anchors.centerIn: parent
spacing: 50
WalletButton {
imageSource: Style.svg("swap-icon")
text: qsTr("Swap")
onClicked: {
console.log("TODO");
}
}
WalletButton {
imageSource: Style.svg("send")
text: qsTr("Send")
onClicked: {
console.log("TODO");
}
}
WalletButton {
imageSource: Style.svg("crypto-icon")
text: qsTr("Buy / Sell")
onClicked: {
cryptoServicesModal.open();
}
}
}
CryptoServicesModal {
id: cryptoServicesModal
anchors.centerIn: parent
walletV2Model: walletFooterRoot.walletV2Model
}
}