diff options
| author | Jeremy Rimpo <jeremy.rimpo@servermonkey.com> | 2023-09-27 15:28:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-27 15:28:04 -0500 |
| commit | e7ee47b6e21be6741e11723b4ac4719d82d70d4b (patch) | |
| tree | 411ea3a8eb5d07eee9cd15dd3d34c29c6f9f8b76 /src/tutorials/TutorialCanceller.qml | |
| parent | 79d457f598bcfa7a8d094a87033a31f370c9c4c1 (diff) | |
| parent | 523ea046a9f68846be0e28321ce38d94553d33ec (diff) | |
Merge pull request #1883 from ModOrganizer2/tutorial_updates
Tutorial updates
Diffstat (limited to 'src/tutorials/TutorialCanceller.qml')
| -rw-r--r-- | src/tutorials/TutorialCanceller.qml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/tutorials/TutorialCanceller.qml b/src/tutorials/TutorialCanceller.qml new file mode 100644 index 00000000..b2e88fae --- /dev/null +++ b/src/tutorials/TutorialCanceller.qml @@ -0,0 +1,55 @@ +import QtQuick 2.7 + +// rectangle for description texts +Rectangle { + property alias text: textBox.text + property alias cancelVisible: cancelIcon.visible + property int innerWidth; + signal clicked + + anchors.horizontalCenter: parent.horizontalCenter + anchors.bottom: parent.bottom + anchors.bottomMargin: 70 + width: textBox.width + 30 + height: textBox.height + 8 + border.color: "black" + border.width: 3 + smooth: true + //opacity: 0.9 + z: 10000 + color: "#FF707070" + + Image { + id: cancelIcon + anchors.bottom: parent.bottom + anchors.bottomMargin: 5 + anchors.right: parent.right + anchors.rightMargin: 5 + source: "qrc:/MO/gui/multiply_red" + + SequentialAnimation on opacity { + loops: Animation.Infinite + + PauseAnimation { duration: 500 } + PropertyAnimation { easing.type: Easing.InOutSine; duration: 400; to: 0.0 } + PropertyAnimation { easing.type: Easing.OutInSine; duration: 400; to: 1.0 } + } + } + + Text { + id: textBox + text: "Exit Tutorial" + font.pointSize: 12 + font.bold: false + width: innerWidth + font.family: "Courier" + wrapMode: Text.WordWrap + anchors.centerIn: parent + } + + MouseArea { + id: clickArea + anchors.fill: parent + onClicked: parent.clicked() + } +} |
