Upload files to "contents/splash"
This commit is contained in:
parent
4475c94ccd
commit
66a2f82b2c
|
@ -0,0 +1,87 @@
|
||||||
|
import QtQuick 2.5
|
||||||
|
import QtQuick.Window 2.2
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
id: root
|
||||||
|
color: "#000000"
|
||||||
|
|
||||||
|
property int stage
|
||||||
|
|
||||||
|
onStageChanged: {
|
||||||
|
if (stage == 1) {
|
||||||
|
introAnimation.running = true;
|
||||||
|
} else if (stage == 5) {
|
||||||
|
introAnimation.target = busyIndicator;
|
||||||
|
introAnimation.from = 1;
|
||||||
|
introAnimation.to = 0;
|
||||||
|
introAnimation.running = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: content
|
||||||
|
anchors.fill: parent
|
||||||
|
opacity: 0
|
||||||
|
TextMetrics {
|
||||||
|
id: units
|
||||||
|
text: "M"
|
||||||
|
property int gridUnit: boundingRect.height
|
||||||
|
property int largeSpacing: units.gridUnit
|
||||||
|
property int smallSpacing: Math.max(2, gridUnit/4)
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
|
||||||
|
property int sizeAnim: 200
|
||||||
|
|
||||||
|
id: imageSource
|
||||||
|
width: sizeAnim
|
||||||
|
height: sizeAnim
|
||||||
|
color: "transparent"
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
clip: true;
|
||||||
|
|
||||||
|
AnimatedImage {
|
||||||
|
id: face
|
||||||
|
source: "images/plasma_d.gif"
|
||||||
|
paused: false
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
width: imageSource.sizeAnim - 32
|
||||||
|
height: imageSource.sizeAnim - 20
|
||||||
|
smooth: true
|
||||||
|
visible: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Image {
|
||||||
|
id: busyIndicator
|
||||||
|
//in the middle of the remaining space
|
||||||
|
y: parent.height - 150
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.margins: units.gridUnit
|
||||||
|
source: "images/busywidget.svgz"
|
||||||
|
sourceSize.height: units.gridUnit * 2
|
||||||
|
sourceSize.width: units.gridUnit * 2
|
||||||
|
RotationAnimator on rotation {
|
||||||
|
id: rotationAnimator
|
||||||
|
from: 0
|
||||||
|
to: 360
|
||||||
|
duration: 1500
|
||||||
|
loops: Animation.Infinite
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
OpacityAnimator {
|
||||||
|
id: introAnimation
|
||||||
|
running: false
|
||||||
|
target: content
|
||||||
|
from: 0
|
||||||
|
to: 1
|
||||||
|
duration: 1000
|
||||||
|
easing.type: Easing.InOutQuad
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue