From 3e82b91ed087ac70fd211c588a2986cf8c7d4f9a Mon Sep 17 00:00:00 2001 From: hybridkernel Date: Tue, 7 Jan 2025 20:09:47 +1100 Subject: [PATCH 1/2] add exit button --- Resources/icon-edit.png | Bin Resources/icon-exit.png | Bin 0 -> 253 bytes qml.qrc | 1 + qml/Launcher.qml | 7 +++++++ 4 files changed, 8 insertions(+) mode change 100755 => 100644 Resources/icon-edit.png create mode 100644 Resources/icon-exit.png diff --git a/Resources/icon-edit.png b/Resources/icon-edit.png old mode 100755 new mode 100644 diff --git a/Resources/icon-exit.png b/Resources/icon-exit.png new file mode 100644 index 0000000000000000000000000000000000000000..5d9f79039b7fffbc820782163735f4a910ecaac2 GIT binary patch literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^G9b*s1|*Ak?@s|zEX7WqAsj$Z!;#Vf{w*dU-DgapB)}`E=e-%(7NU4cQAcpNLx5B;`>!2X5+fj zCpT}$OW)ZN(m6lYbp1{NH{Q literal 0 HcmV?d00001 diff --git a/qml.qrc b/qml.qrc index 6000e2c..3128d5c 100644 --- a/qml.qrc +++ b/qml.qrc @@ -37,6 +37,7 @@ Resources/green-button.png Resources/check.png Resources/icon-edit.png + Resources/icon-exit.png Resources/icon-settings.png Resources/icon-copy.png Resources/icon-home.png diff --git a/qml/Launcher.qml b/qml/Launcher.qml index 5d76443..a7e6405 100644 --- a/qml/Launcher.qml +++ b/qml/Launcher.qml @@ -56,6 +56,13 @@ RowLayout { onClicked: updateIndex(4) checked: currentIndex == 4 } + MSideBarItem { + text: qsTr("Exit") + iconSource: "qrc:/Resources/icon-exit.png" + showText: useWideLayout + onClicked: Qt.quit() + checked: false + } } } From 70fa75c76099bdbab1e56b354fb83d95797f8fa9 Mon Sep 17 00:00:00 2001 From: hybridkernel Date: Wed, 8 Jan 2025 04:10:08 +1100 Subject: [PATCH 2/2] revert the accidental change to icon-edit --- Resources/icon-edit.png | Bin 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 Resources/icon-edit.png diff --git a/Resources/icon-edit.png b/Resources/icon-edit.png old mode 100644 new mode 100755