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:
parent
c4a0e73e19
commit
d32370fc3a
|
@ -14,6 +14,6 @@ HCircleProgressBar {
|
|||
from: 0
|
||||
to: 360
|
||||
loops: Animation.Infinite
|
||||
duration: theme ? (theme.animationDuration * 6) : 600
|
||||
duration: 600
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -255,7 +255,7 @@ HBox {
|
|||
}
|
||||
|
||||
Timer {
|
||||
interval: theme.animationDuration * 2
|
||||
interval: 200
|
||||
running: true
|
||||
repeat: true
|
||||
onTriggered:
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user