Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit af8a4b50 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳 Committed by Marco Martin

Add lock screen look-and-feel

parent 0608967e
......@@ -20,7 +20,7 @@
import QtQuick 2.12
import QtQuick.Layouts 1.12
import QtQuick.Controls 2.12 as Controls
import QtQuick.Controls 2.8 as Controls
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.kcoreaddons 1.0 as KCoreAddons
......@@ -60,18 +60,17 @@ PlasmaCore.ColorScope {
id: kuser
}
Rectangle {
anchors.fill: contents
color: PlasmaCore.ColorScope.backgroundColor
radius: units.smallSpacing
}
Controls.Popup {
visible: true
anchors.centerIn: parent
width: Math.min(units.gridUnit * 20, root.width * 0.8)
height: Math.min(units.gridUnit * 25, root.height * 0.7)
Component.onCompleted: open()
ColumnLayout {
id: contents
anchors.centerIn: parent
spacing: units.largeSpacing
width: Math.min(units.gridUnit * 20, root.width * 0.8)
height: Math.min(units.gridUnit * 25, root.height * 0.7)
anchors.fill: parent
UserDelegate {
Layout.fillWidth: true
......@@ -86,6 +85,7 @@ PlasmaCore.ColorScope {
}
ColumnLayout {
Layout.margins: 10
Controls.Button {
Layout.fillWidth: true
display: Controls.Button.TextUnderIcon
......@@ -101,13 +101,6 @@ PlasmaCore.ColorScope {
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Restart")
onClicked: root.rebootRequested()
}
Controls.Button {
Layout.fillWidth: true
display: Controls.Button.TextUnderIcon
icon.name: "system-lock-screen"
text: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Lock screen")
onClicked: root.lockScreenRequested()
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment