Add button to close PlayerControls

This commit is contained in:
Bart De Vries 2021-04-15 22:29:16 +02:00
parent 97bed3def8
commit 6eca639ce4
1 changed files with 13 additions and 1 deletions

View File

@ -22,13 +22,25 @@ Kirigami.Page {
ColumnLayout { ColumnLayout {
anchors.fill: parent anchors.fill: parent
anchors.topMargin:0
Controls.Button {
id: swipeUpButton
property int swipeUpButtonSize: Kirigami.Units.gridUnit * 2
icon.name: "arrow-down"
icon.height: swipeUpButtonSize
icon.width: swipeUpButtonSize
flat: true
Layout.alignment: Qt.AlignHCenter
Layout.topMargin: 0
onClicked: toClose.restart()
}
Controls.SwipeView { Controls.SwipeView {
id: swipeView id: swipeView
currentIndex: 0 currentIndex: 0
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
Layout.preferredWidth: parent.width Layout.preferredWidth: parent.width
Layout.preferredHeight: parent.height - media.height - indicator.height Layout.preferredHeight: parent.height - media.height - indicator.height - swipeUpButton.height
Layout.margins: 0 Layout.margins: 0
Item { Item {
property int textMargin: Kirigami.Units.gridUnit // margin above and below the text below the image property int textMargin: Kirigami.Units.gridUnit // margin above and below the text below the image