mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:36:44 +02:00
Dialog opacity transition tidying
This commit is contained in:
parent
2a931119bd
commit
a43593c3b2
2 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ DialogBase {
|
||||||
* Support for animating the dialog in and out.
|
* Support for animating the dialog in and out.
|
||||||
*/
|
*/
|
||||||
enabled: false
|
enabled: false
|
||||||
opacity: 0.0
|
opacity: 1.0
|
||||||
|
|
||||||
// The offscreen UI will enable an object, rather than manipulating it's
|
// The offscreen UI will enable an object, rather than manipulating it's
|
||||||
// visibility, so that we can do animations in both directions. Because
|
// visibility, so that we can do animations in both directions. Because
|
||||||
|
@ -46,7 +46,7 @@ DialogBase {
|
||||||
// The actual animator
|
// The actual animator
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: 300
|
duration: animationDuration
|
||||||
easing.type: Easing.OutCubic
|
easing.type: Easing.OutCubic
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,6 +56,6 @@ Item {
|
||||||
|
|
||||||
QtObject {
|
QtObject {
|
||||||
id: effects
|
id: effects
|
||||||
readonly property int fadeInDuration: 400
|
readonly property int fadeInDuration: 300
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue