From 3eccd42e1388767508c811a583257d638b4155c7 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sun, 12 Jul 2020 11:55:58 -0400 Subject: [PATCH] Add swipe up label, and make main bottom elements also swipe up --- .../contents/lockscreen/LockScreen.qml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/look-and-feel/contents/lockscreen/LockScreen.qml b/look-and-feel/contents/lockscreen/LockScreen.qml index d025019c..89452781 100644 --- a/look-and-feel/contents/lockscreen/LockScreen.qml +++ b/look-and-feel/contents/lockscreen/LockScreen.qml @@ -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 {