Optimize animation

pull/10/head
reionwong 3 years ago
parent c4dee7c237
commit 45d2982d8f

@ -14,6 +14,9 @@ kwin4_effect_squashEnabled=false
kwin4_effect_translucencyEnabled=false
magiclampEnabled=false
cutefish_scaleEnabled = true
[Effect-Blur]
BlurStrength=7
NoiseStrength=1
@ -33,8 +36,8 @@ TabBox=false
TabBoxAlternative=false
[Effect-SlidingPopups]
SlideInTime=300
SlideOutTime=300
SlideInTime=250
SlideOutTime=250
[TabBox]
ActivitiesMode=1

@ -27,10 +27,10 @@ var scaleEffect = {
var defaultDuration = 250;
var duration = effect.readConfig("Duration", defaultDuration) || defaultDuration;
scaleEffect.duration = animationTime(duration);
scaleEffect.inScale = effect.readConfig("InScale", 0.96);
scaleEffect.inOpacity = effect.readConfig("InOpacity", 0.4);
scaleEffect.outScale = effect.readConfig("OutScale", 0.96);
scaleEffect.outOpacity = effect.readConfig("OutOpacity", 0.0);
scaleEffect.inScale = 0.96;
scaleEffect.inOpacity = 1.0;
scaleEffect.outScale = 0.96;
scaleEffect.outOpacity = 0.0;
},
isScaleWindow: function (window) {
// We don't want to animate most of plasmashell's windows, yet, some

@ -45,7 +45,7 @@ var squashEffect = {
window.minimizeAnimation = animate({
window: window,
curve: QEasingCurve.OutQuad,
curve: QEasingCurve.OutQuad, //OutQuad, InOutQuad
duration: squashEffect.duration,
animations: [
{
@ -111,7 +111,7 @@ var squashEffect = {
window.unminimizeAnimation = animate({
window: window,
curve: QEasingCurve.OutSine,
curve: QEasingCurve.InOutQuad, // QEasingCurve.OutSine,
duration: squashEffect.duration,
animations: [
{

Loading…
Cancel
Save