aboutsummaryrefslogtreecommitdiffstats
path: root/theme/Main.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-17 12:57:22 +0200
committerDanilo M. <danix@danix.xyz>2026-09-17 12:57:22 +0200
commit5f73e8c655e65d31f1d400c95d5f8aa4578e8e41 (patch)
tree1ed9d54c2c2f180f15448a81ae89db84542c88ed /theme/Main.qml
parent46b3571bdc4fe37b1cccd1fa4400d17a62ad44f4 (diff)
downloadsddm-theme-udt-5f73e8c655e65d31f1d400c95d5f8aa4578e8e41.tar.gz
sddm-theme-udt-5f73e8c655e65d31f1d400c95d5f8aa4578e8e41.zip
feat: login card with avatar, inputs and idle fade
Diffstat (limited to 'theme/Main.qml')
-rw-r--r--theme/Main.qml14
1 files changed, 6 insertions, 8 deletions
diff --git a/theme/Main.qml b/theme/Main.qml
index f1b91ee..e5c529f 100644
--- a/theme/Main.qml
+++ b/theme/Main.qml
@@ -6,6 +6,7 @@
// else the primary screen); input wakes the card after it fades.
import QtQuick
+import "components"
Item {
id: root
@@ -110,17 +111,14 @@ Item {
event.accepted = false
}
- // Placeholder card. Task 2 replaces this with components/LoginCard.qml.
- Rectangle {
+ LoginCard {
id: card
- x: root.cardGeometry.x + (root.cardGeometry.width - width) / 2
+ x: root.cardGeometry.x + (root.cardGeometry.width - width) / 2 + card.shakeOffset
y: root.cardGeometry.y + (root.cardGeometry.height - height) / 2
- width: 380
- height: 220
- radius: root.cardRadius
- color: config.stringValue("mantle")
- opacity: root.uiVisible ? 0.9 : 0
+ backdropSource: root.cardScreenImage
visible: opacity > 0
+ opacity: root.uiVisible ? 1 : 0
Behavior on opacity { NumberAnimation { duration: 260; easing.type: Easing.OutCubic } }
+ onWake: root.wake()
}
}