aerothemeplasma/plasma/look-and-feel/authui7/contents/components/Status.qml

54 lines
1.2 KiB
QML
Raw Normal View History

2024-01-20 02:08:06 +00:00
/*
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
2024-08-09 01:20:25 +00:00
import QtQuick.Controls 2.15
2024-01-20 02:08:06 +00:00
2024-08-09 01:20:25 +00:00
import Qt5Compat.GraphicalEffects
2024-01-20 02:08:06 +00:00
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
2024-08-09 01:20:25 +00:00
renderType: Text.NativeRendering
font.hintingPreference: Font.PreferFullHinting
font.kerning: false
2024-01-20 02:08:06 +00:00
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 }
}
}