From 590321e0c6e3352b80387c2d12c8713e4542abc0 Mon Sep 17 00:00:00 2001 From: Walter Lapchynski Date: Sat, 17 Aug 2019 14:41:47 -0700 Subject: [PATCH] add support for suspend button. resolves T112 --- debian/changelog | 6 ++++++ src/usr/share/sddm/themes/lubuntu/Main.qml | 11 ++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 53eb30e..670ad86 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +lubuntu-artwork (19.04.3) eoan; urgency=medium + + * Add support for suspend button. + + -- Walter Lapchynski Sat, 17 Aug 2019 14:38:36 -0700 + lubuntu-artwork (19.04.2) disco; urgency=medium * Provide lxqt-branding so the Debian LXQt branding is not pulled in. diff --git a/src/usr/share/sddm/themes/lubuntu/Main.qml b/src/usr/share/sddm/themes/lubuntu/Main.qml index da4d02e..dd50227 100644 --- a/src/usr/share/sddm/themes/lubuntu/Main.qml +++ b/src/usr/share/sddm/themes/lubuntu/Main.qml @@ -221,13 +221,22 @@ Rectangle { dateFont.pixelSize: 12 } + ImageButton { + id: btnSuspend + height: parent.height + source: "suspend.png" + visible: sddm.canSuspend + onClicked: sddm.suspend() + KeyNavigation.backtab: layoutBox; KeyNavigation.tab: btnReboot + } + ImageButton { id: btnReboot height: parent.height source: "reboot.png" visible: sddm.canReboot onClicked: sddm.reboot() - KeyNavigation.backtab: layoutBox; KeyNavigation.tab: btnShutdown + KeyNavigation.backtab: btnSuspend; KeyNavigation.tab: btnShutdown } ImageButton {