Index: sources/gui/qml/pages/SettingsHome.qml =================================================================== diff -u -r5194f3afffb28dac90a7ca4153b6a0ca2f239387 -rf623529d6ec25b555f3ac2248d71fc2b5e7063d6 --- sources/gui/qml/pages/SettingsHome.qml (.../SettingsHome.qml) (revision 5194f3afffb28dac90a7ca4153b6a0ca2f239387) +++ sources/gui/qml/pages/SettingsHome.qml (.../SettingsHome.qml) (revision f623529d6ec25b555f3ac2248d71fc2b5e7063d6) @@ -17,6 +17,8 @@ import QtQuick.Controls 2.12 // Project +import Gui.Actions 0.1; + // Qml imports import "qrc:/globals" import "qrc:/components" @@ -26,6 +28,20 @@ * which is the default screen in the "Settings" stack */ ScreenItem { id: _root + TouchRect { id : _poweroff + width: 150 + height: Variables.logoHeight + anchors { + top : parent.top + right : parent.right + topMargin : (Variables.headerHeight - Variables.logoHeight) / 2 + rightMargin : (Variables.headerHeight - Variables.logoHeight) / 2 + } + text.text: qsTr("Shutdown") + button.onPressed: { + _GuiView.doActionRequest(GuiActions.PowerOff) + } + } Column { spacing: Variables.columnSpacing anchors.centerIn: parent