extend fadeout animation duration to 600ms

compensated by a QuartOut shape, this keeps the
effect alive while the sheet or similar effects run
without much visual stretch

Covers issue until there's AnimationEffect::determine()

CCBUG: 321897
semi Fixed in 4.11.2
REVIEW: 111798
This commit is contained in:
Thomas Lübking 2013-07-30 16:09:01 +02:00
parent 6303c8d573
commit 05bc5bfc0b

View file

@ -34,7 +34,7 @@ function isLoginWindow(w) {
var fadeInTime, fadeOutTime, fadeWindows;
function loadConfig() {
fadeInTime = animationTime(effect.readConfig("FadeInTime", 150));
fadeOutTime = animationTime(effect.readConfig("FadeOutTime", 150));
fadeOutTime = animationTime(effect.readConfig("FadeOutTime", 600));
fadeWindows = effect.readConfig("FadeWindows", true);
}
loadConfig();
@ -48,6 +48,6 @@ effects.windowAdded.connect(function(w) {
});
effects.windowClosed.connect(function(w) {
if (fadeWindows && isFadeWindow(w)) {
effect.animate(w, Effect.Opacity, fadeOutTime, 0.0);
effect.animate(w, Effect.Opacity, fadeOutTime, 0.0, "", QEasingCurve.OutQuart);
}
});