mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2024-08-15 00:43:43 +00:00
51 lines
1.1 KiB
QML
51 lines
1.1 KiB
QML
|
/*
|
||
|
SPDX-FileCopyrightText: 2016 David Edmundson <davidedmundson@kde.org>
|
||
|
|
||
|
SPDX-License-Identifier: LGPL-2.0-or-later
|
||
|
*/
|
||
|
|
||
|
import QtQuick 2.15
|
||
|
import QtQuick.Layouts 1.1
|
||
|
import QtQuick.Controls 2.3
|
||
|
|
||
|
import QtGraphicalEffects 1.0
|
||
|
|
||
|
RowLayout {
|
||
|
id: root
|
||
|
|
||
|
property string statusText
|
||
|
property int spinnum: 0
|
||
|
property bool speen
|
||
|
|
||
|
spacing: 8
|
||
|
Image {
|
||
|
id: loadingspinner
|
||
|
source: "../images/100/spin"+spinnum+".png"
|
||
|
}
|
||
|
Label {
|
||
|
id: welcomeLbl
|
||
|
z: 1
|
||
|
text: statusText
|
||
|
color: "#FFFFFF"
|
||
|
font.pointSize: 18
|
||
|
layer.enabled: true
|
||
|
layer.effect: DropShadow {
|
||
|
//visible: !softwareRendering
|
||
|
horizontalOffset: 0
|
||
|
verticalOffset: 1
|
||
|
radius: 6
|
||
|
samples: 14
|
||
|
spread: 0.0001
|
||
|
color: "#bf000000"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
SequentialAnimation {
|
||
|
id: spinner
|
||
|
running: speen
|
||
|
loops: Animation.Infinite
|
||
|
NumberAnimation { target: root; property: "spinnum"; to: 17; duration: 900 }
|
||
|
NumberAnimation { target: root; property: "spinnum"; to: 0; duration: 0 }
|
||
|
}
|
||
|
}
|