Skip to content

Commit

Permalink
Fix FloatingActions icons and move back button
Browse files Browse the repository at this point in the history
  • Loading branch information
dobey committed Nov 4, 2021
1 parent 84dffbe commit 04baf43
Showing 1 changed file with 29 additions and 18 deletions.
47 changes: 29 additions & 18 deletions qml/FloatingActions.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -106,4 +116,5 @@ RowLayout {
}
}
}
}
}

0 comments on commit 04baf43

Please sign in to comment.