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,16 +68,27 @@ PlasmaCore.ColorScope {
opacity: 1 - (passwordFlickable.contentY / passwordFlickable.columnHeight) opacity: 1 - (passwordFlickable.contentY / passwordFlickable.columnHeight)
} }
PlasmaCore.IconItem { // bottom of screen elements
ColumnLayout {
anchors.bottom: parent.bottom 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 anchors.horizontalCenter: parent.horizontalCenter
opacity: 1 - (passwordFlickable.contentY / passwordFlickable.columnHeight) opacity: 1 - (passwordFlickable.contentY / passwordFlickable.columnHeight)
PlasmaCore.IconItem {
Layout.alignment: Qt.AlignHCenter
colorGroup: PlasmaCore.Theme.ComplementaryColorGroup colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
source: "arrow-up" source: "arrow-up"
} }
PlasmaComponents.Label {
Layout.alignment: Qt.AlignHCenter
text: qsTr("Swipe up to unlock device")
}
}
Flickable { Flickable {
id: passwordFlickable id: passwordFlickable