mirror of
https://github.com/Snigdha-OS/snigdhaos-kde-theme.git
synced 2025-09-20 20:44:56 +02:00
🚀 feat: add splash functions
This commit is contained in:
96
plasma/look-and-feel/Snigdha-OS/contents/splash/Splash.qml
Normal file
96
plasma/look-and-feel/Snigdha-OS/contents/splash/Splash.qml
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2014 Marco Martin <mart@kde.org>
|
||||
*
|
||||
* 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 570 KiB |
@@ -0,0 +1,8 @@
|
||||
<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" width="200" height="200">
|
||||
<title>snigdhaos-splash</title>
|
||||
<style>
|
||||
.s0 { fill: #ffffff }
|
||||
</style>
|
||||
<path id="Path 7" fill-rule="evenodd" class="s0" d="m89.3 89.5q17.2 18.1 1.2 36.1-14.4 13.9-28 15.3c5.7-5 7.3-13.3 3.8-20q-17.4-18.2-26.2-31.9-10-26.5 27.4-36 6.3-10.3 61.1-37.1c10.3-3 21.2 1.8 26 11.5 4.6 9.6 1.8 21.2-6.8 27.6l-75.4 4.7q-1.3 13.8 16.9 29.8zm-23.7-29c-7.6 2.3-17.6 6.4-20.2 13.6-1.3 3.9-0.6 8.1 0.8 11.8 7 10.9 16.1 21.1 25 30.4l0.7 0.7 0.5 0.8c1.8 3.7 2.6 7.8 2.4 11.7 4-2.5 7.6-5.5 10.8-8.6 8.3-9.5 7.6-17.5-1-26.6-9.6-8.5-19.5-20.2-19-33.8zm82.9-30.1c-3.2-6.6-10.5-10-17.6-8.2-14 6.8-28.3 14.1-41.5 22.1-2.5 1.5-8.4 5.2-12.4 8.4l68.2-4.3c5-4.5 6.3-11.9 3.3-18z"/>
|
||||
<path id="Path 8" fill-rule="evenodd" class="s0" d="m110.1 111.4q-17.3-17.9-1.3-36 14.4-13.9 28.1-15.2c-5.7 4.9-7.3 13.1-3.9 19.9q17.5 18.2 26.2 32 10 26.4-27.3 35.8-6.3 10.4-61.2 37.2c-10.3 3-21.1-1.9-25.9-11.5-4.7-9.6-1.9-21.2 6.8-27.6l75.3-4.7q1.4-13.9-16.8-29.9zm23.6 29.1c7.7-2.3 17.7-6.4 20.2-13.7 1.4-3.8 0.7-8-0.7-11.8-7-10.7-16.2-21-25-30.3l-0.8-0.7-0.4-0.8c-1.9-3.7-2.6-7.7-2.5-11.7-4 2.5-7.6 5.5-10.8 8.6-8.3 9.4-7.5 17.5 1 26.6 9.7 8.4 19.6 20.2 19 33.8zm-82.9 30.2c3.2 6.4 10.6 9.8 17.6 8.1 14-6.8 28.3-14 41.6-22.1 2.4-1.5 8.3-5.2 12.3-8.4l-68.1 4.3c-5 4.6-6.4 11.9-3.4 18.1z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" id="svg2" width="460" height="290" version="1.1" viewBox="0 0 460 290"/>
|
After Width: | Height: | Size: 113 B |
Reference in New Issue
Block a user