- opacity: 0.8
-// TODO: hide back button
- property bool show: deleteDialog.status == DialogStatus.Open ||
- deleteDialog.status == DialogStatus.Opening ||
- hideTimer.running || menu.status == DialogStatus.Open ||
- menu.status == DialogStatus.Opening ||
- (view.currentItem && view.currentItem.error) && !view.currentItem.playing
-
-// TODO:
-// onClicked: pageStack.pop()
-
- Behavior on anchors.bottomMargin {
- PropertyAnimation { duration: 200; }
+ anchors.right: parent.right
+ anchors.rightMargin: 20
+ opacity: show ? 0.8 : 0.0
+ visible: opacity > 0
+ property bool show: deleteDialog.isOpen || deleteDialog.isOpening ||
+ hideTimer.running ||
+ (view.currentItem != null && view.currentItem.error) && !view.currentItem.playing
+
+ Behavior on opacity {
+ PropertyAnimation { duration: view.currentItem && view.currentItem.playing ? 0 : 200 }