Bug 436652 - Ridiculous indefinite progress bar animation with animations speed set to instant
Summary: Ridiculous indefinite progress bar animation with animations speed set to ins...
Status: RESOLVED FIXED
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: components (show other bugs)
Version: 5.81.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-05 18:26 UTC by medin
Modified: 2023-12-08 15:40 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.88


Attachments
Indefinite progress-bar with animation disabled (430.42 KB, video/mp4)
2021-05-05 18:26 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2021-05-05 18:26:29 UTC
Created attachment 138179 [details]
Indefinite progress-bar with animation disabled

When animation is set to instant, the indefinite progress-bar acts like crazy. See attached video for more info.
Comment 1 Nate Graham 2021-05-06 18:02:00 UTC
lol, can confirm by running the test with `qmlscene ./tests/components/progressbar3.qml` with animation speed set to instant.
Comment 2 David Redondo 2021-05-07 08:17:59 UTC
What should the result be if animations are disabled? 
Easiest fix would be to just stop the animation but that would look like nothing is happening which is wrong
Comment 3 medin 2021-05-07 12:47:47 UTC
Either :
- Disabling animation, and I think current static indeterminate progress looks fine and reflect the fact that loading percentage is not calculable.
- Or hacking the animation for progress bar so even if animation is disabled it will shows minimum animation to make it looks better.
- Or finding another graphical form to represent better the static indeterminate progress status.
Comment 4 Nate Graham 2021-05-07 15:33:30 UTC
The QStyle's indeterminate indicator looks fine non-animated. Maybe we should replace the Plasma style's animation with that, and then just freeze it when there are no animations.
Comment 5 ratijas 2023-12-08 15:40:04 UTC
The animation speed setting is for transitions. Progress bar is not a transition, it is a component in and of itself, and as such should not be affected by that global setting.

In past is was using veryLongDuration value, which is subject to scale with the global animation setting.  But in commit 416e6853442bd08e6ef25ae040951f56c26455b3 it was changed to humanMoment which is constant 2 seconds.