effects/fade: Remove hidden FadeWindows option

Enable/disable the fade effect in system settings instead.
This commit is contained in:
Vlad Zahorodnii 2023-01-26 20:33:58 +02:00
parent c1fb295cd6
commit 5de308792f

View file

@ -31,7 +31,6 @@ class FadeEffect {
loadConfig() { loadConfig() {
this.fadeInTime = animationTime(effect.readConfig("FadeInTime", 150)); this.fadeInTime = animationTime(effect.readConfig("FadeInTime", 150));
this.fadeOutTime = animationTime(effect.readConfig("FadeOutTime", 150)) * 4; this.fadeOutTime = animationTime(effect.readConfig("FadeOutTime", 150)) * 4;
this.fadeWindows = effect.readConfig("FadeWindows", true); // TODO Plasma 6: Remove it.
} }
static isFadeWindow(w) { static isFadeWindow(w) {
@ -62,7 +61,7 @@ class FadeEffect {
if (effects.hasActiveFullScreenEffect) { if (effects.hasActiveFullScreenEffect) {
return; return;
} }
if (!this.fadeWindows || !FadeEffect.isFadeWindow(window)) { if (!FadeEffect.isFadeWindow(window)) {
return; return;
} }
if (window.fadeOutAnimation) { if (window.fadeOutAnimation) {
@ -82,7 +81,7 @@ class FadeEffect {
if (effects.hasActiveFullScreenEffect) { if (effects.hasActiveFullScreenEffect) {
return; return;
} }
if (!this.fadeWindows || window.skipsCloseAnimation || !FadeEffect.isFadeWindow(window)) { if (window.skipsCloseAnimation || !FadeEffect.isFadeWindow(window)) {
return; return;
} }
window.fadeOutAnimation = animate({ window.fadeOutAnimation = animate({