2022-03-18 14:47:51 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2022-08-29 16:28:54 +00:00
|
|
|
import QtGraphicalEffects 1.13
|
2022-03-18 14:47:51 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
import StatusQ.Popups 0.1
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: footer
|
|
|
|
|
2022-10-17 10:17:25 +00:00
|
|
|
property string maxFiatFees: "..."
|
2022-11-30 12:59:21 +00:00
|
|
|
property alias totalTimeEstimate: estimatedTime.text
|
2022-08-29 16:28:54 +00:00
|
|
|
property bool pending: true
|
2022-11-23 17:58:22 +00:00
|
|
|
property alias nextButtonText: nextButton.text
|
2022-03-18 14:47:51 +00:00
|
|
|
|
|
|
|
signal nextButtonClicked()
|
|
|
|
|
|
|
|
width: parent.width
|
|
|
|
height: 82
|
|
|
|
radius: 8
|
2022-07-26 18:14:55 +00:00
|
|
|
color: Theme.palette.baseColor3
|
2022-03-18 14:47:51 +00:00
|
|
|
|
2022-08-29 16:28:54 +00:00
|
|
|
layer.enabled: true
|
|
|
|
layer.effect: DropShadow {
|
|
|
|
verticalOffset: 2
|
|
|
|
radius: 16
|
|
|
|
samples: 17
|
|
|
|
color: Theme.palette.dropShadow
|
2022-03-18 14:47:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.leftMargin: 32
|
|
|
|
anchors.rightMargin: 32
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
StatusBaseText {
|
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.directColor5
|
|
|
|
text: qsTr("Estimated Time:")
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
}
|
|
|
|
// To-do not implemented yet
|
|
|
|
StatusBaseText {
|
2022-06-02 17:47:42 +00:00
|
|
|
id: estimatedTime
|
2022-03-18 14:47:51 +00:00
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.directColor1
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// To fill gap in between
|
|
|
|
Item {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
implicitHeight: 1
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
spacing: 16
|
|
|
|
ColumnLayout {
|
|
|
|
StatusBaseText {
|
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.directColor5
|
|
|
|
text: qsTr("Max Fees:")
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
}
|
|
|
|
StatusBaseText {
|
2022-06-02 17:47:42 +00:00
|
|
|
id: fiatFees
|
2022-03-18 14:47:51 +00:00
|
|
|
font.pixelSize: 15
|
|
|
|
color: Theme.palette.directColor1
|
|
|
|
text: maxFiatFees
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusFlatButton {
|
2022-11-23 17:58:22 +00:00
|
|
|
id: nextButton
|
2022-04-04 11:26:30 +00:00
|
|
|
text: qsTr("Send")
|
2022-07-21 12:15:02 +00:00
|
|
|
objectName: "sendModalFooterSendButton"
|
2022-03-18 14:47:51 +00:00
|
|
|
size: StatusBaseButton.Size.Large
|
|
|
|
normalColor: Theme.palette.primaryColor2
|
2022-09-13 07:37:09 +00:00
|
|
|
disabledColor: Theme.palette.baseColor2
|
2022-08-29 16:28:54 +00:00
|
|
|
enabled: !footer.pending
|
|
|
|
loading: footer.pending
|
2022-03-18 14:47:51 +00:00
|
|
|
onClicked: nextButtonClicked()
|
2022-11-23 17:58:22 +00:00
|
|
|
icon.name: "password"
|
2022-03-18 14:47:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|