bazzite/spec_files/steamdeck-kde-presets/splash.patch
2024-05-20 10:32:14 -07:00

137 lines
5.0 KiB
Diff

diff --git a/usr/share/plasma/look-and-feel/com.valve.vapor.desktop/contents/splash/Splash.qml b/usr/share/plasma/look-and-feel/com.valve.vapor.desktop/contents/splash/Splash.qml
index d518586..091b59d 100644
--- a/usr/share/plasma/look-and-feel/com.valve.vapor.desktop/contents/splash/Splash.qml
+++ b/usr/share/plasma/look-and-feel/com.valve.vapor.desktop/contents/splash/Splash.qml
@@ -4,9 +4,8 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
-import QtQuick 2.5
-import QtQuick.Window 2.2
-import org.kde.plasma.core 2.0 as PlasmaCore
+import QtQuick
+import org.kde.kirigami 2 as Kirigami
Rectangle {
id: root
@@ -38,25 +37,27 @@ Rectangle {
Image {
id: logo
//match SDDM/lockscreen avatar positioning
- property real size: PlasmaCore.Units.gridUnit * 24
+ readonly property real size: Kirigami.Units.gridUnit * 8
anchors.centerIn: parent
+ asynchronous: true
source: "images/bazzite_logo.svgz"
- sourceSize.width: 128
- sourceSize.height: 128
+ sourceSize.width: size
+ sourceSize.height: size
}
// TODO: port to PlasmaComponents3.BusyIndicator
Image {
id: busyIndicator
//in the middle of the remaining space
- y: parent.height - (parent.height - logo.y) / 3 - height/2
+ y: parent.height - (parent.height - logo.y) / 2 - height/2
anchors.horizontalCenter: parent.horizontalCenter
+ asynchronous: true
source: "images/busywidget.svgz"
- sourceSize.height: PlasmaCore.Units.gridUnit * 2
- sourceSize.width: PlasmaCore.Units.gridUnit * 2
+ sourceSize.height: Kirigami.Units.gridUnit * 2
+ sourceSize.width: Kirigami.Units.gridUnit * 2
RotationAnimator on rotation {
id: rotationAnimator
from: 0
@@ -67,7 +68,7 @@ Rectangle {
duration: 2000
loops: Animation.Infinite
// Don't want it to animate at all if the user has disabled animations
- running: PlasmaCore.Units.longDuration > 1
+ running: Kirigami.Units.longDuration > 1
}
}
}
@@ -78,7 +79,7 @@ Rectangle {
target: content
from: 0
to: 1
- duration: PlasmaCore.Units.veryLongDuration * 2
+ duration: Kirigami.Units.veryLongDuration * 2
easing.type: Easing.InOutQuad
}
}
diff --git a/usr/share/plasma/look-and-feel/com.valve.vgui.desktop/contents/splash/Splash.qml b/usr/share/plasma/look-and-feel/com.valve.vgui.desktop/contents/splash/Splash.qml
index d518586..091b59d 100644
--- a/usr/share/plasma/look-and-feel/com.valve.vgui.desktop/contents/splash/Splash.qml
+++ b/usr/share/plasma/look-and-feel/com.valve.vgui.desktop/contents/splash/Splash.qml
@@ -4,9 +4,8 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
-import QtQuick 2.5
-import QtQuick.Window 2.2
-import org.kde.plasma.core 2.0 as PlasmaCore
+import QtQuick
+import org.kde.kirigami 2 as Kirigami
Rectangle {
id: root
@@ -38,25 +37,27 @@ Rectangle {
Image {
id: logo
//match SDDM/lockscreen avatar positioning
- property real size: PlasmaCore.Units.gridUnit * 24
+ readonly property real size: Kirigami.Units.gridUnit * 8
anchors.centerIn: parent
+ asynchronous: true
source: "images/bazzite_logo.svgz"
- sourceSize.width: 128
- sourceSize.height: 128
+ sourceSize.width: size
+ sourceSize.height: size
}
// TODO: port to PlasmaComponents3.BusyIndicator
Image {
id: busyIndicator
//in the middle of the remaining space
- y: parent.height - (parent.height - logo.y) / 3 - height/2
+ y: parent.height - (parent.height - logo.y) / 2 - height/2
anchors.horizontalCenter: parent.horizontalCenter
+ asynchronous: true
source: "images/busywidget.svgz"
- sourceSize.height: PlasmaCore.Units.gridUnit * 2
- sourceSize.width: PlasmaCore.Units.gridUnit * 2
+ sourceSize.height: Kirigami.Units.gridUnit * 2
+ sourceSize.width: Kirigami.Units.gridUnit * 2
RotationAnimator on rotation {
id: rotationAnimator
from: 0
@@ -67,7 +68,7 @@ Rectangle {
duration: 2000
loops: Animation.Infinite
// Don't want it to animate at all if the user has disabled animations
- running: PlasmaCore.Units.longDuration > 1
+ running: Kirigami.Units.longDuration > 1
}
}
}
@@ -78,7 +79,7 @@ Rectangle {
target: content
from: 0
to: 1
- duration: PlasmaCore.Units.veryLongDuration * 2
+ duration: Kirigami.Units.veryLongDuration * 2
easing.type: Easing.InOutQuad
}
}