commit
Update Main.qml
diff --git a/sddm/moon/Main.qml b/sddm/moon/Main.qml
index ce5c53f..035c97e 100644
--- a/sddm/moon/Main.qml
+++ b/sddm/moon/Main.qml
@@ -32,7 +32,6 @@ Rectangle {
var v = config[key]
return (v === undefined || v === null || v === "") ? fallback : String(v)
}
- readonly property bool useVideo: cfg("useVideo", "true") === "true"
readonly property real dim: parseFloat(cfg("dim", "0.25"))
FontLoader { id: mono; source: "fonts/JetBrainsMonoNerdFontMono-Regular.ttf" }
@@ -70,7 +69,7 @@ Rectangle {
readonly property string userLabel: users.length ? users[userIndex].real : userModel.lastUser
readonly property string sessionName: sessions.length ? sessions[sessionIndex] : "Session"
- // ---------- Background: still underneath, video on top ----------
+ // ---------- Background ----------
Item {
id: background
anchors.fill: parent
@@ -81,15 +80,6 @@ Rectangle {
fillMode: Image.PreserveAspectCrop
asynchronous: true
}
- Video {
- anchors.fill: parent
- visible: root.useVideo
- source: root.useVideo ? Qt.resolvedUrl(root.cfg("video", "background.webm")) : ""
- fillMode: VideoOutput.PreserveAspectCrop
- loops: MediaPlayer.Infinite
- muted: true
- autoPlay: true
- }
Rectangle { anchors.fill: parent; color: c.base; opacity: root.dim }
}