Verified Commit 8df97ad3 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

wallpapers/image: follow system animation speed setting in wallpaper transition

The value is to keep compatible with the old feeling defined by
"TransitionAnimationDuration" (default: 1000)

BUG: 395324
FIXED-IN: 5.26
parent 9100b871
Pipeline #188390 passed with stage
in 6 minutes and 56 seconds
......@@ -38,10 +38,6 @@
<label>Interval between slides (s)</label>
<default>900</default>
</entry>
<entry name="TransitionAnimationDuration" type="int">
<label>Fade Transition Animation (ms)</label>
<default>1000</default>
</entry>
<entry name="UncheckedSlides" type="StringList">
<label>Unchecked Slides</label>
<default></default>
......
......@@ -178,16 +178,18 @@ QQC2.StackView {
replaceEnter: Transition {
OpacityAnimator {
id: replaceEnterOpacityAnimator
from: 0
to: 1
duration: wallpaper.configuration.TransitionAnimationDuration
// The value is to keep compatible with the old feeling defined by "TransitionAnimationDuration" (default: 1000)
duration: Math.round(PlasmaCore.Units.veryLongDuration * 2.5)
}
}
// Keep the old image around till the new one is fully faded in
// If we fade both at the same time you can see the background behind glimpse through
replaceExit: Transition{
PauseAnimation {
duration: wallpaper.configuration.TransitionAnimationDuration
duration: replaceEnterOpacityAnimator.duration
}
}
}
......@@ -30,10 +30,6 @@
<label>Interval between slides (s)</label>
<default>900</default>
</entry>
<entry name="TransitionAnimationDuration" type="int">
<label>Fade Transition Animation (ms)</label>
<default>1000</default>
</entry>
<entry name="UncheckedSlides" type="StringList">
<label>Unchecked Slides</label>
<default></default>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment