1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 21:45:38 -05:00

lockscreen: implement

This commit is contained in:
bbedward
2025-07-24 14:56:58 -04:00
parent 71be8bdeec
commit 8bcac36be3
9 changed files with 1133 additions and 74 deletions

View File

@@ -19,6 +19,7 @@ PanelWindow {
property bool powerOptionsExpanded: false
signal powerActionRequested(string action, string title, string message)
signal lockRequested()
visible: controlCenterVisible
onVisibleChanged: {
@@ -231,13 +232,27 @@ PanelWindow {
}
// Action Buttons - Power and Settings
// Action Buttons - Lock, Power and Settings
Row {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
anchors.rightMargin: Theme.spacingL
spacing: Theme.spacingS
// Lock Button
DankActionButton {
buttonSize: 40
iconName: "lock"
iconSize: Theme.iconSize - 2
iconColor: Theme.surfaceText
backgroundColor: Qt.rgba(Theme.surfaceVariant.r, Theme.surfaceVariant.g, Theme.surfaceVariant.b, 0.5)
hoverColor: Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.12)
onClicked: {
controlCenterVisible = false;
root.lockRequested();
}
}
// Power Button
Rectangle {
width: 40