summaryrefslogtreecommitdiffstats
path: root/src/settingsui/settingsuiplugin/pluginMain.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/settingsui/settingsuiplugin/pluginMain.qml')
-rw-r--r--src/settingsui/settingsuiplugin/pluginMain.qml81
1 files changed, 41 insertions, 40 deletions
diff --git a/src/settingsui/settingsuiplugin/pluginMain.qml b/src/settingsui/settingsuiplugin/pluginMain.qml
index 4df473f..3f15c57 100644
--- a/src/settingsui/settingsuiplugin/pluginMain.qml
+++ b/src/settingsui/settingsuiplugin/pluginMain.qml
@@ -47,51 +47,52 @@ Rectangle {
height: 40
z: 2
- RowLayout {
- spacing: 20
- anchors.fill: parent
-
- ToolButton {
- contentItem: Image {
- fillMode: Image.PreserveAspectFit
- source: "../icons/Chevron-left_black_1x.png"
- anchors.centerIn: parent
- }
-
- visible: stackView.depth > 1
- onClicked: stackView.pop();
+ ToolButton {
+ height: parent.height
+ width: height
+ contentItem: Image {
+ fillMode: Image.PreserveAspectFit
+ source: "../icons/Chevron-left_black_6x.png"
+ anchors.fill: parent
+ anchors.margins: parent.height * .2
}
- Label {
- id: titleText
- font.pixelSize: 20
- text: stackView.currentItem.title
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
- anchors.centerIn: parent
+
+ visible: stackView.depth > 1
+ onClicked: stackView.pop();
+ }
+ Label {
+ id: titleText
+ font.pixelSize: 20
+ text: stackView.currentItem.title
+ horizontalAlignment: Qt.AlignHCenter
+ verticalAlignment: Qt.AlignVCenter
+ anchors.centerIn: parent
+ }
+ ToolButton {
+ height: parent.height
+ width: height
+ contentItem: Image {
+ fillMode: Image.PreserveAspectFit
+ source: "../icons/Power_black_6x.png"
+ anchors.fill: parent
+ anchors.margins: parent.height * .2
}
- ToolButton {
- contentItem: Image {
- fillMode: Image.PreserveAspectFit
- source: "../icons/Power_black_1x.png"
- anchors.centerIn: parent
- }
- anchors.right: parent.right
+ anchors.right: parent.right
- visible: stackView.depth === 1
- onClicked: menu.open();
+ visible: stackView.depth === 1
+ onClicked: menu.open();
- Menu {
- id: menu
- x: parent.width - width
+ Menu {
+ id: menu
+ x: parent.width - width
- MenuItem {
- text: qsTr("Reboot")
- onTriggered: LocalDevice.reboot()
- }
- MenuItem {
- text: qsTr("Shutdown")
- onTriggered: LocalDevice.powerOff()
- }
+ MenuItem {
+ text: qsTr("Reboot")
+ onTriggered: LocalDevice.reboot()
+ }
+ MenuItem {
+ text: qsTr("Shutdown")
+ onTriggered: LocalDevice.powerOff()
}
}
}