Add swipe up label, and make main bottom elements also swipe up

This commit is contained in:
Devin Lin 2020-07-12 11:55:58 -04:00 committed by Bhushan Shah
parent ff6f583289
commit 3eccd42e13

View file

@ -68,14 +68,25 @@ PlasmaCore.ColorScope {
opacity: 1 - (passwordFlickable.contentY / passwordFlickable.columnHeight)
}
PlasmaCore.IconItem {
// bottom of screen elements
ColumnLayout {
anchors.bottom: parent.bottom
anchors.bottomMargin: units.gridUnit
anchors.left: parent.left
anchors.right: parent.right
anchors.bottomMargin: units.gridUnit + passwordFlickable.contentY * 0.5
anchors.horizontalCenter: parent.horizontalCenter
opacity: 1 - (passwordFlickable.contentY / passwordFlickable.columnHeight)
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
source: "arrow-up"
PlasmaCore.IconItem {
Layout.alignment: Qt.AlignHCenter
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
source: "arrow-up"
}
PlasmaComponents.Label {
Layout.alignment: Qt.AlignHCenter
text: qsTr("Swipe up to unlock device")
}
}
Flickable {