2019-09-09 02:17:42 +10:00
|
|
|
import QtQuick 2.12
|
|
|
|
import QtQuick.Controls 2.12
|
|
|
|
|
|
|
|
Popup {
|
|
|
|
id: popup
|
|
|
|
anchors.centerIn: Overlay.overlay
|
|
|
|
modal: true
|
2019-09-09 20:44:06 +10:00
|
|
|
focus: true
|
2019-09-09 02:17:42 +10:00
|
|
|
padding: 0
|
|
|
|
|
|
|
|
|
|
|
|
enter: Transition {
|
2019-12-01 05:59:48 +11:00
|
|
|
HScaleAnimator { from: 0; to: 1; overshoot: 4 }
|
2019-09-09 02:17:42 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
exit: Transition {
|
2019-12-01 05:59:48 +11:00
|
|
|
// FIXME: HScaleAnimator won't work here?
|
2019-09-09 02:17:42 +10:00
|
|
|
HNumberAnimation { property: "scale"; to: 0 }
|
|
|
|
}
|
|
|
|
|
|
|
|
background: Rectangle {
|
|
|
|
color: theme.controls.popup.background
|
|
|
|
}
|
|
|
|
}
|