From 9e0db8f4ffa7d979ffb07cd9d76aee885c261196 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Mon, 7 Aug 2017 15:47:56 +0200 Subject: components mobile scaling --- components/ProcessingSplash.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'components/ProcessingSplash.qml') diff --git a/components/ProcessingSplash.qml b/components/ProcessingSplash.qml index 2f6725db..17091204 100644 --- a/components/ProcessingSplash.qml +++ b/components/ProcessingSplash.qml @@ -38,8 +38,8 @@ Window { property alias messageText: messageTitle.text property alias heightProgressText : heightProgress.text - width: 200 - height: 100 + width: 200 * scaleRatio + height: 100 * scaleRatio opacity: 0.7 ColumnLayout { @@ -49,8 +49,8 @@ Window { anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter - anchors.leftMargin: 30 - anchors.rightMargin: 30 + anchors.leftMargin: 30 * scaleRatio + anchors.rightMargin: 30 * scaleRatio BusyIndicator { running: parent.visible @@ -61,7 +61,7 @@ Window { id: messageTitle text: "Please wait..." font { - pixelSize: 22 + pixelSize: 22 * scaleRatio } horizontalAlignment: Text.AlignHCenter Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter @@ -72,7 +72,7 @@ Window { Text { id: heightProgress font { - pixelSize: 18 + pixelSize: 18 * scaleRatio } horizontalAlignment: Text.AlignHCenter Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter -- cgit v1.2.3 From 31675f4c16a3f7c34c21569b27b8afadc6dc6e74 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Tue, 8 Aug 2017 10:43:15 +0200 Subject: processing splash - mobile redesign --- components/ProcessingSplash.qml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'components/ProcessingSplash.qml') diff --git a/components/ProcessingSplash.qml b/components/ProcessingSplash.qml index 17091204..d7fbd5cb 100644 --- a/components/ProcessingSplash.qml +++ b/components/ProcessingSplash.qml @@ -31,10 +31,11 @@ import QtQuick.Window 2.1 import QtQuick.Controls 1.4 import QtQuick.Layouts 1.1 -Window { +Rectangle { id: root - modality: Qt.ApplicationModal - flags: Qt.Window + color: "white" + visible: false + z:11 property alias messageText: messageTitle.text property alias heightProgressText : heightProgress.text @@ -42,6 +43,14 @@ Window { height: 100 * scaleRatio opacity: 0.7 + function show() { + root.visible = true; + } + + function close() { + root.visible = false; + } + ColumnLayout { id: rootLayout -- cgit v1.2.3