Made some animations unaffected by theme

People modify animationDuration because they want a snappy client.
But it also affects a few things that do not contribute to that
and should remain constant speed:
- Busy indicator
- Progress bar animation
- Ping indicator in AddAccount ServerBrowser
- Image rotation button cooldown
This commit is contained in:
Maze 2021-04-20 02:05:55 +02:00 committed by miruka
parent c4a0e73e19
commit d32370fc3a
4 changed files with 5 additions and 5 deletions

View File

@ -14,6 +14,6 @@ HCircleProgressBar {
from: 0
to: 360
loops: Animation.Infinite
duration: theme ? (theme.animationDuration * 6) : 600
duration: 600
}
}

View File

@ -31,7 +31,7 @@ ProgressBar {
HNumberAnimation on x {
running: bar.visible && bar.indeterminate
duration: theme.animationDuration * 8
duration: 800
from: 0
to: bar.width - indicator.width

View File

@ -255,7 +255,7 @@ HBox {
}
Timer {
interval: theme.animationDuration * 2
interval: 200
running: true
repeat: true
onTriggered:

View File

@ -72,7 +72,7 @@ HFlow {
toolTip.text: qsTr("Rotate left")
autoRepeat: true
autoRepeatDelay: 20
autoRepeatInterval: theme.animationDuration * 3
autoRepeatInterval: 300
onPressed: viewer.animatedRotationTarget -= 45
HPopupShortcut {
@ -88,7 +88,7 @@ HFlow {
toolTip.text: qsTr("Rotate right")
autoRepeat: true
autoRepeatDelay: 20
autoRepeatInterval: theme.animationDuration * 3
autoRepeatInterval: 300
onPressed: viewer.animatedRotationTarget += 45
HPopupShortcut {