|
|
@ -29,21 +29,23 @@
|
|
|
|
import QtQuick 2.9
|
|
|
|
import QtQuick 2.9
|
|
|
|
import QtQuick.Window 2.1
|
|
|
|
import QtQuick.Window 2.1
|
|
|
|
import QtQuick.Controls 1.4
|
|
|
|
import QtQuick.Controls 1.4
|
|
|
|
|
|
|
|
import QtQuick.Controls.Styles 1.4
|
|
|
|
import QtQuick.Layouts 1.1
|
|
|
|
import QtQuick.Layouts 1.1
|
|
|
|
|
|
|
|
|
|
|
|
import "../components" as MoneroComponents
|
|
|
|
import "../components" as MoneroComponents
|
|
|
|
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
Rectangle {
|
|
|
|
id: root
|
|
|
|
id: root
|
|
|
|
color: MoneroComponents.Style.blackTheme ? "white" : "transparent"
|
|
|
|
color: MoneroComponents.Style.blackTheme ? "black" : "white"
|
|
|
|
visible: false
|
|
|
|
visible: false
|
|
|
|
|
|
|
|
radius: 10
|
|
|
|
|
|
|
|
border.color: MoneroComponents.Style.blackTheme ? Qt.rgba(255, 255, 255, 0.25) : Qt.rgba(0, 0, 0, 0.25)
|
|
|
|
|
|
|
|
border.width: 1
|
|
|
|
z: 11
|
|
|
|
z: 11
|
|
|
|
property alias messageText: messageTitle.text
|
|
|
|
property alias messageText: messageTitle.text
|
|
|
|
property alias heightProgressText : heightProgress.text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
width: 200
|
|
|
|
width: 100
|
|
|
|
height: 100
|
|
|
|
height: 50
|
|
|
|
opacity: 0.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function show() {
|
|
|
|
function show() {
|
|
|
|
root.visible = true;
|
|
|
|
root.visible = true;
|
|
|
@ -56,44 +58,55 @@ Rectangle {
|
|
|
|
ColumnLayout {
|
|
|
|
ColumnLayout {
|
|
|
|
id: rootLayout
|
|
|
|
id: rootLayout
|
|
|
|
|
|
|
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.centerIn: parent
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
anchors.leftMargin: 30
|
|
|
|
anchors.leftMargin: 30
|
|
|
|
anchors.rightMargin: 30
|
|
|
|
anchors.rightMargin: 30
|
|
|
|
|
|
|
|
|
|
|
|
spacing: 12
|
|
|
|
spacing: 21
|
|
|
|
|
|
|
|
|
|
|
|
BusyIndicator {
|
|
|
|
Item {
|
|
|
|
running: parent.visible
|
|
|
|
|
|
|
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
|
|
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
|
|
|
|
|
|
|
Layout.preferredHeight: 80
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Image {
|
|
|
|
|
|
|
|
id: imgLogo
|
|
|
|
|
|
|
|
width: 60
|
|
|
|
|
|
|
|
height: 60
|
|
|
|
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
|
|
|
source: "qrc:///images/monero-vector.svg"
|
|
|
|
|
|
|
|
mipmap: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
MoneroComponents.TextPlain {
|
|
|
|
BusyIndicator {
|
|
|
|
id: messageTitle
|
|
|
|
running: parent.visible
|
|
|
|
text: "Please wait..."
|
|
|
|
anchors.centerIn: imgLogo
|
|
|
|
font {
|
|
|
|
style: BusyIndicatorStyle {
|
|
|
|
pixelSize: 22
|
|
|
|
indicator: Image {
|
|
|
|
|
|
|
|
visible: control.running
|
|
|
|
|
|
|
|
source: "qrc:///images/busy-indicator.png"
|
|
|
|
|
|
|
|
RotationAnimator on rotation {
|
|
|
|
|
|
|
|
running: control.running
|
|
|
|
|
|
|
|
loops: Animation.Infinite
|
|
|
|
|
|
|
|
duration: 1000
|
|
|
|
|
|
|
|
from: 0
|
|
|
|
|
|
|
|
to: 360
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
|
|
|
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
themeTransition: false
|
|
|
|
|
|
|
|
color: "black"
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MoneroComponents.TextPlain {
|
|
|
|
MoneroComponents.TextPlain {
|
|
|
|
id: heightProgress
|
|
|
|
id: messageTitle
|
|
|
|
font {
|
|
|
|
text: qsTr("Please wait...") + translationManager.emptyString
|
|
|
|
pixelSize: 18
|
|
|
|
font.pixelSize: 24
|
|
|
|
}
|
|
|
|
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
|
|
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
themeTransition: false
|
|
|
|
themeTransition: false
|
|
|
|
color: "black"
|
|
|
|
color: MoneroComponents.Style.defaultFontColor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|