From 7a784ac6ea290677673e071b0c11884c67f7f64b Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Mon, 11 Mar 2024 06:01:19 -0700 Subject: [PATCH] lockscreen: rename types to match quickshell revision --- lockscreen/shell.qml | 4 ++-- wlogout/{WlButton.qml => LogoutButton.qml} | 0 wlogout/WLogout.qml | 4 ++-- wlogout/shell.qml | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) rename wlogout/{WlButton.qml => LogoutButton.qml} (100%) diff --git a/lockscreen/shell.qml b/lockscreen/shell.qml index 2a36ac8..c873c68 100644 --- a/lockscreen/shell.qml +++ b/lockscreen/shell.qml @@ -9,7 +9,7 @@ ShellRoot { onUnlocked: lock.locked = false } - SessionLock { + WlSessionLock { id: lock locked: true @@ -17,7 +17,7 @@ ShellRoot { if (!locked) Qt.quit(); } - SessionLockSurface { + WlSessionLockSurface { // You probably want to replace this with an image. color: "#303030" diff --git a/wlogout/WlButton.qml b/wlogout/LogoutButton.qml similarity index 100% rename from wlogout/WlButton.qml rename to wlogout/LogoutButton.qml diff --git a/wlogout/WLogout.qml b/wlogout/WLogout.qml index 8965882..2568508 100644 --- a/wlogout/WLogout.qml +++ b/wlogout/WLogout.qml @@ -9,7 +9,7 @@ Variants { property color backgroundColor: "#e60c0c0c" property color buttonColor: "#1e1e1e" property color buttonHoverColor: "#3700b3" - default property list buttons + default property list buttons variants: Quickshell.screens.map(screen => ({ screen })) PanelWindow { @@ -62,7 +62,7 @@ Variants { Repeater { model: buttons delegate: Rectangle { - required property WlButton modelData; + required property LogoutButton modelData; Layout.fillWidth: true Layout.fillHeight: true diff --git a/wlogout/shell.qml b/wlogout/shell.qml index f406d02..777b3ab 100644 --- a/wlogout/shell.qml +++ b/wlogout/shell.qml @@ -3,42 +3,42 @@ import Quickshell ShellRoot { WLogout { - WlButton { + LogoutButton { command: "loginctl lock-screen" keybind: Qt.Key_K text: "Lock" icon: "lock" } - WlButton { + LogoutButton { command: "loginctl terminate-user $USER" keybind: Qt.Key_E text: "Logout" icon: "logout" } - WlButton { + LogoutButton { command: "systemctl suspend" keybind: Qt.Key_U text: "Suspend" icon: "suspend" } - WlButton { + LogoutButton { command: "systemctl hibernate" keybind: Qt.Key_H text: "Hibernate" icon: "hibernate" } - WlButton { + LogoutButton { command: "systemctl poweroff" keybind: Qt.Key_K text: "Shutdown" icon: "shutdown" } - WlButton { + LogoutButton { command: "systemctl reboot" keybind: Qt.Key_R text: "Reboot"