From 04baf43c11dc0536b80177f8f810c41d40e973e3 Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Wed, 3 Nov 2021 14:53:24 -0400 Subject: [PATCH] Fix FloatingActions icons and move back button --- qml/FloatingActions.qml | 47 +++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 18 deletions(-) diff --git a/qml/FloatingActions.qml b/qml/FloatingActions.qml index 6529b0e4..7c5f28e8 100644 --- a/qml/FloatingActions.qml +++ b/qml/FloatingActions.qml @@ -6,15 +6,19 @@ import MaliitKeyboard 2.0 import "keys/" -RowLayout { +Item { anchors { - top: parent.top - left: parent.left - right: parent.right + fill: parent margins: Device.gu(1) topMargin: toolbar.height + Device.gu(1) } - + + RowLayout { + anchors { + left: parent.left + top: parent.top + } + FloatingActionKey { id: startLineButton @@ -50,27 +54,33 @@ RowLayout { } } } - + } + FloatingActionKey { id: doneButton - Layout.alignment: Qt.AlignHCenter - Layout.fillWidth: true - Layout.minimumWidth: Device.gu(5) - Layout.maximumWidth: Device.gu(20) - Layout.preferredHeight: Device.gu(5) + width: Device.gu(5) + height: width + anchors { + left: parent.left + bottom: parent.bottom + } keyFeedback: false action: Action { - text: qsTr("Done") - icon.name: "ok" - onTriggered: { - fullScreenItem.exitSwipeMode() - } + icon.name: "go-previous" + onTriggered: { + fullScreenItem.exitSwipeMode() } + } } - - + + RowLayout { + anchors { + right: parent.right + top: parent.top + } + FloatingActionKey { id: endDocButton @@ -106,4 +116,5 @@ RowLayout { } } } + } }