aboutsummaryrefslogtreecommitdiff
path: root/components/ProcessingSplash.qml
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2020-04-30 01:12:15 +0200
committerselsta <selsta@sent.at>2020-05-01 22:09:27 +0200
commit5265e52b8bbbdf54f25ae0142e9fbf1f2d151634 (patch)
tree8eea7f839b3578aa46f4e14531dadb0f3670a4df /components/ProcessingSplash.qml
parentb6fdb709bad551d45d3e6fe25a6ac7c7888b446f (diff)
downloadmonzero-gui-5265e52b8bbbdf54f25ae0142e9fbf1f2d151634.tar.gz
monzero-gui-5265e52b8bbbdf54f25ae0142e9fbf1f2d151634.tar.xz
monzero-gui-5265e52b8bbbdf54f25ae0142e9fbf1f2d151634.zip
ProcessingSplash: new design
Diffstat (limited to 'components/ProcessingSplash.qml')
-rw-r--r--components/ProcessingSplash.qml67
1 files changed, 40 insertions, 27 deletions
diff --git a/components/ProcessingSplash.qml b/components/ProcessingSplash.qml
index 9211fa02..7cf7a567 100644
--- a/components/ProcessingSplash.qml
+++ b/components/ProcessingSplash.qml
@@ -29,21 +29,23 @@
import QtQuick 2.9
import QtQuick.Window 2.1
import QtQuick.Controls 1.4
+import QtQuick.Controls.Styles 1.4
import QtQuick.Layouts 1.1
import "../components" as MoneroComponents
Rectangle {
id: root
- color: MoneroComponents.Style.blackTheme ? "white" : "transparent"
+ color: MoneroComponents.Style.blackTheme ? "black" : "white"
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
property alias messageText: messageTitle.text
- property alias heightProgressText : heightProgress.text
- width: 200
- height: 100
- opacity: 0.7
+ width: 100
+ height: 50
function show() {
root.visible = true;
@@ -56,44 +58,55 @@ Rectangle {
ColumnLayout {
id: rootLayout
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.verticalCenter: parent.verticalCenter
+ anchors.centerIn: parent
anchors.leftMargin: 30
anchors.rightMargin: 30
- spacing: 12
+ spacing: 21
- BusyIndicator {
- running: parent.visible
+ Item {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
- }
+ Layout.preferredHeight: 80
- MoneroComponents.TextPlain {
- id: messageTitle
- text: "Please wait..."
- font {
- pixelSize: 22
+ Image {
+ id: imgLogo
+ width: 60
+ height: 60
+ anchors.centerIn: parent
+ source: "qrc:///images/monero-vector.svg"
+ mipmap: true
+ }
+
+ BusyIndicator {
+ running: parent.visible
+ anchors.centerIn: imgLogo
+ style: BusyIndicatorStyle {
+ 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 {
- id: heightProgress
- font {
- pixelSize: 18
- }
+ id: messageTitle
+ text: qsTr("Please wait...") + translationManager.emptyString
+ font.pixelSize: 24
horizontalAlignment: Text.AlignHCenter
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
Layout.fillWidth: true
themeTransition: false
- color: "black"
+ color: MoneroComponents.Style.defaultFontColor
}
}
}