diff --git a/plasma/look-and-feel/Snigdha-OS/contents/splash/Splash.qml b/plasma/look-and-feel/Snigdha-OS/contents/splash/Splash.qml new file mode 100644 index 0000000..66a4c07 --- /dev/null +++ b/plasma/look-and-feel/Snigdha-OS/contents/splash/Splash.qml @@ -0,0 +1,96 @@ +/* + * Copyright 2014 Marco Martin + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2, + * or (at your option) any later version, as published by the Free + * Software Foundation + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +import QtQuick 2.1 + + +Image { + id: root + source: "images/background.jpg" + + property int stage + + onStageChanged: { + if (stage == 1) { + introAnimation.running = true + } + } + Image { + id: topRect + anchors.horizontalCenter: parent.horizontalCenter + y: root.height + source: "images/rectangle.svg" + Image { + source: "images/kde.svg" + anchors.centerIn: parent + } + Rectangle { + radius: 3 + color: "#55555574" + anchors { + bottom: parent.bottom + bottomMargin: 50 + horizontalCenter: parent.horizontalCenter + } + height: 6 + width: height*36 + Rectangle { + radius: 3 + anchors { + left: parent.left + top: parent.top + bottom: parent.bottom + } + width: (parent.width / 6) * (stage - 1) + color: "#6495ed" + Behavior on width { + PropertyAnimation { + duration: 250 + easing.type: Easing.InOutQuad + } + } + } + } + } + + SequentialAnimation { + id: introAnimation + running: false + + ParallelAnimation { + PropertyAnimation { + property: "y" + target: topRect + to: root.height / 3 + duration: 1000 + easing.type: Easing.InOutBack + easing.overshoot: 1.0 + } + + PropertyAnimation { + property: "y" + target: bottomRect + to: 2 * (root.height / 3) - bottomRect.height + duration: 1000 + easing.type: Easing.InOutBack + easing.overshoot: 1.0 + } + } + } +} diff --git a/plasma/look-and-feel/Snigdha-OS/contents/splash/images/background.jpg b/plasma/look-and-feel/Snigdha-OS/contents/splash/images/background.jpg new file mode 100644 index 0000000..ab70cb4 Binary files /dev/null and b/plasma/look-and-feel/Snigdha-OS/contents/splash/images/background.jpg differ diff --git a/plasma/look-and-feel/Snigdha-OS/contents/splash/images/kde.svg b/plasma/look-and-feel/Snigdha-OS/contents/splash/images/kde.svg new file mode 100644 index 0000000..6c9d8da --- /dev/null +++ b/plasma/look-and-feel/Snigdha-OS/contents/splash/images/kde.svg @@ -0,0 +1,8 @@ + + snigdhaos-splash + + + + \ No newline at end of file diff --git a/plasma/look-and-feel/Snigdha-OS/contents/splash/images/rectangle.svg b/plasma/look-and-feel/Snigdha-OS/contents/splash/images/rectangle.svg new file mode 100644 index 0000000..ac3e795 --- /dev/null +++ b/plasma/look-and-feel/Snigdha-OS/contents/splash/images/rectangle.svg @@ -0,0 +1 @@ +