Skip to content
Snippets Groups Projects
DapNewPaymentDoneRightPanelForm.ui.qml 4.4 KiB
Newer Older
andrey.daragan's avatar
andrey.daragan committed
import QtQuick 2.4
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4
import "qrc:/widgets"
import "../../../"

DapAbstractRightPanel
{
andrey.daragan's avatar
andrey.daragan committed
    /// @param dapButtonSend Send button.
    property alias dapButtonSend: buttonSend

andrey.daragan's avatar
andrey.daragan committed
    dapHeaderData:
        Row
        {
            anchors.fill: parent
            anchors.leftMargin: 16 * pt
            anchors.rightMargin: 16 * pt
            anchors.topMargin: 12 * pt
            anchors.bottomMargin: 12 * pt
            spacing: 12 * pt

            Item
            {
                id: itemButtonClose
                data: dapButtonClose
                height: dapButtonClose.height
                width: dapButtonClose.width
            }

            Text
            {
                id: textHeader
                text: qsTr("New payment")
                font.pixelSize: 14 * pt
                color: "#3E3853"
            }
        }
    dapContentItemData:
        Rectangle
        {
            anchors.fill: parent
            anchors.leftMargin: 16 * pt
            anchors.rightMargin: 16 * pt
            color: "transparent"

            Rectangle
            {
                id: rectangleTop
                anchors.top: parent.top
                anchors.left: parent.left
                anchors.right: parent.right
                height: 156 * pt
                color: "transparent"
            }

            Text
            {
                id: textMessage
                text: qsTr("Placed to mempool")
                horizontalAlignment: Text.AlignHCenter
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: rectangleTop.bottom
                anchors.topMargin:  24 * pt
                color: "#070023"
                font.family: DapMainApplicationWindow.dapFontRobotoRegular.name
                font.pointSize: 28 * pt
            }

            Rectangle
            {
                id: rectangleCenter
                height: 48 * pt
                anchors.top: textMessage.bottom
                anchors.left: parent.left
                anchors.right: parent.right
                color: "transparent"
            }

            Text
            {
                id: textStatus
                text: qsTr("Status")
                horizontalAlignment: Text.AlignHCenter
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: rectangleCenter.bottom
                color: "#757184"
                font.family: DapMainApplicationWindow.dapFontRobotoRegular.name
                font.pointSize: 22 * pt
            }

            Text
            {
                id: textStatusMessage
                text: qsTr("Pending")
                horizontalAlignment: Text.AlignHCenter
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: textStatus.bottom
                anchors.topMargin: 8 * pt
                color: "#070023"
                font.family: DapMainApplicationWindow.dapFontRobotoRegular.name
                font.pointSize: 28 * pt
            }

            Rectangle
            {
                id: rectangleTopButton
                height: 64 * pt
                anchors.top: textStatusMessage.bottom
                anchors.topMargin: 24 * pt
                anchors.left: parent.left
                anchors.right: parent.right
                color: "transparent"
            }

            // Button "Send"
            DapButton
            {
                id: buttonSend
                height: 44 * pt
                width: 130 * pt
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: rectangleTopButton.bottom
                anchors.topMargin: 24 * pt
                textButton: qsTr("Send")
                colorBackgroundHover: "#D51F5D"
                colorBackgroundNormal: "#070023"
                colorButtonTextNormal: "#FFFFFF"
                horizontalAligmentText: Text.AlignHCenter
                indentTextRight: 0
                fontButton.pixelSize: 18 * pt
            }

            Rectangle
            {
                id: rectangleBottomButton
                height: 190 * pt
                anchors.top: buttonSend.bottom
                anchors.topMargin: 24 * pt
                anchors.left: parent.left
                anchors.right: parent.right
                anchors.bottom: parent.bottom
                color: "transparent"
            }
        }
}