Merge branch 'KDE/4.11'
This commit is contained in:
commit
22f0e62cb8
1 changed files with 10 additions and 2 deletions
|
@ -34,7 +34,7 @@ function isLoginWindow(w) {
|
|||
var fadeInTime, fadeOutTime, fadeWindows;
|
||||
function loadConfig() {
|
||||
fadeInTime = animationTime(effect.readConfig("FadeInTime", 150));
|
||||
fadeOutTime = animationTime(effect.readConfig("FadeOutTime", 600));
|
||||
fadeOutTime = animationTime(effect.readConfig("FadeOutTime", 150)) * 4;
|
||||
fadeWindows = effect.readConfig("FadeWindows", true);
|
||||
}
|
||||
loadConfig();
|
||||
|
@ -48,6 +48,14 @@ effects.windowAdded.connect(function(w) {
|
|||
});
|
||||
effects.windowClosed.connect(function(w) {
|
||||
if (fadeWindows && isFadeWindow(w)) {
|
||||
effect.animate(w, Effect.Opacity, fadeOutTime, 0.0, "", QEasingCurve.OutQuart);
|
||||
animate({
|
||||
window: w,
|
||||
duration: fadeOutTime,
|
||||
animations: [{
|
||||
type: Effect.Opacity,
|
||||
curve: QEasingCurve.OutQuart,
|
||||
to: 0.0
|
||||
}]
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue