More LockScreen fixes
This commit is contained in:
parent
94a646cfb3
commit
22b3ddc95d
2 changed files with 912 additions and 48 deletions
|
|
@ -556,55 +556,7 @@ WlSessionLock {
|
|||
|
||||
}
|
||||
|
||||
// Error message with modern styling
|
||||
Rectangle {
|
||||
width: parent.width
|
||||
height: 56 * Scaling.scale(screen)
|
||||
radius: 28
|
||||
color: Qt.rgba(Colors.error.r, Colors.error.g, Colors.error.b, 0.15)
|
||||
border.color: Colors.error
|
||||
border.width: 1 * Scaling.scale(screen)
|
||||
visible: lock.errorMessage !== ""
|
||||
Layout.fillWidth: true
|
||||
|
||||
RowLayout {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 18 * Scaling.scale(screen)
|
||||
spacing: 12 * Scaling.scale(screen)
|
||||
|
||||
Text {
|
||||
text: "error"
|
||||
font.family: "Material Symbols Outlined"
|
||||
font.pixelSize: 22 * Scaling.scale(screen)
|
||||
color: Colors.error
|
||||
}
|
||||
|
||||
Text {
|
||||
text: lock.errorMessage
|
||||
color: Colors.error
|
||||
font.family: "Inter"
|
||||
font.pixelSize: 16 * Scaling.scale(screen)
|
||||
font.weight: Font.Medium
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
|
||||
NumberAnimation on opacity {
|
||||
from: 0
|
||||
to: 1
|
||||
duration: 300
|
||||
running: lock.errorMessage !== ""
|
||||
}
|
||||
|
||||
// Shake animation on error
|
||||
SequentialAnimation on x {
|
||||
running: lock.errorMessage !== ""
|
||||
NumberAnimation { to: 10; duration: 50 }
|
||||
NumberAnimation { to: -10; duration: 100 }
|
||||
NumberAnimation { to: 10; duration: 100 }
|
||||
NumberAnimation { to: 0; duration: 50 }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue