Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
trinity/qml/BackButton.qml

38 lines
591 B
QML
Raw Normal View History

2021-07-21 16:08:15 -04:00
import QtQuick 2.10
import QtQuick.Controls 2.3
import QtGraphicalEffects 1.0
import QtQuick.Shapes 1.0
Rectangle {
color: "transparent"
ToolButton {
id: button
width: 32
height: 32
text: "X"
onClicked: stack.pop()
}
Text {
anchors.top: button.bottom
anchors.horizontalCenter: button.horizontalCenter
horizontalAlignment: Text.AlignHCenter
font.bold: true
text: "ESC"
color: myPalette.text
2021-07-21 16:08:15 -04:00
}
Shortcut {
sequence: "ESC"
onActivated: stack.pop()
}
}