diff --git a/kde/look-and-feel/contents/previews/splash.png b/kde/look-and-feel/contents/previews/splash.png new file mode 100644 index 0000000..2725293 Binary files /dev/null and b/kde/look-and-feel/contents/previews/splash.png differ diff --git a/kde/look-and-feel/contents/splash/.directory b/kde/look-and-feel/contents/splash/.directory new file mode 100644 index 0000000..4f5fa0e --- /dev/null +++ b/kde/look-and-feel/contents/splash/.directory @@ -0,0 +1,3 @@ +[Dolphin] +Timestamp=2019,6,23,12,1,37 +Version=4 diff --git a/kde/look-and-feel/contents/splash/Splash.qml b/kde/look-and-feel/contents/splash/Splash.qml new file mode 100644 index 0000000..4ed7bc4 --- /dev/null +++ b/kde/look-and-feel/contents/splash/Splash.qml @@ -0,0 +1,70 @@ +import QtQuick 2.5 + + +Image { + id: root + source: "images/background.png" + + property int stage + + onStageChanged: { + if (stage == 1) { + 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) + } + + Image { + id: logo + //match SDDM/lockscreen avatar positioning + property real size: units.gridUnit * 12 + + anchors.centerIn: parent + + source: "images/sweetlogo.png" + + sourceSize.width: size + sourceSize.height: size + } + + Image { + id: busyIndicator + //in the middle of the remaining space + y: parent.height - (parent.height - logo.y) / 3 - height/2 + anchors.horizontalCenter: parent.horizontalCenter + source: "images/busy.svg" + sourceSize.height: units.gridUnit * 3 + sourceSize.width: units.gridUnit * 3 + RotationAnimator on rotation { + id: rotationAnimator + from: 0 + to: 360 + duration: 800 + loops: Animation.Infinite + } + } + + } + + OpacityAnimator { + id: introAnimation + running: false + target: content + from: 0 + to: 1 + duration: 1000 + easing.type: Easing.InOutQuad + } +} diff --git a/kde/look-and-feel/contents/splash/images/.directory b/kde/look-and-feel/contents/splash/images/.directory new file mode 100644 index 0000000..410682b --- /dev/null +++ b/kde/look-and-feel/contents/splash/images/.directory @@ -0,0 +1,4 @@ +[Dolphin] +PreviewsShown=true +Timestamp=2019,6,23,12,8,17 +Version=4 diff --git a/kde/look-and-feel/contents/splash/images/background.png b/kde/look-and-feel/contents/splash/images/background.png new file mode 100644 index 0000000..97810b9 Binary files /dev/null and b/kde/look-and-feel/contents/splash/images/background.png differ diff --git a/kde/look-and-feel/contents/splash/images/busy.svg b/kde/look-and-feel/contents/splash/images/busy.svg new file mode 100644 index 0000000..c2709eb --- /dev/null +++ b/kde/look-and-feel/contents/splash/images/busy.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/kde/look-and-feel/contents/splash/images/sweetlogo.png b/kde/look-and-feel/contents/splash/images/sweetlogo.png new file mode 100644 index 0000000..7d2304b Binary files /dev/null and b/kde/look-and-feel/contents/splash/images/sweetlogo.png differ