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:
		@@ -14,6 +14,6 @@ HCircleProgressBar {
 | 
				
			|||||||
        from: 0
 | 
					        from: 0
 | 
				
			||||||
        to: 360
 | 
					        to: 360
 | 
				
			||||||
        loops: Animation.Infinite
 | 
					        loops: Animation.Infinite
 | 
				
			||||||
        duration: theme ? (theme.animationDuration * 6) : 600
 | 
					        duration: 600
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,7 +31,7 @@ ProgressBar {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            HNumberAnimation on x {
 | 
					            HNumberAnimation on x {
 | 
				
			||||||
                running: bar.visible && bar.indeterminate
 | 
					                running: bar.visible && bar.indeterminate
 | 
				
			||||||
                duration: theme.animationDuration * 8
 | 
					                duration: 800
 | 
				
			||||||
                from: 0
 | 
					                from: 0
 | 
				
			||||||
                to: bar.width - indicator.width
 | 
					                to: bar.width - indicator.width
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -255,7 +255,7 @@ HBox {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Timer {
 | 
					    Timer {
 | 
				
			||||||
        interval: theme.animationDuration * 2
 | 
					        interval: 200
 | 
				
			||||||
        running: true
 | 
					        running: true
 | 
				
			||||||
        repeat: true
 | 
					        repeat: true
 | 
				
			||||||
        onTriggered:
 | 
					        onTriggered:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -72,7 +72,7 @@ HFlow {
 | 
				
			|||||||
        toolTip.text: qsTr("Rotate left")
 | 
					        toolTip.text: qsTr("Rotate left")
 | 
				
			||||||
        autoRepeat: true
 | 
					        autoRepeat: true
 | 
				
			||||||
        autoRepeatDelay: 20
 | 
					        autoRepeatDelay: 20
 | 
				
			||||||
        autoRepeatInterval: theme.animationDuration * 3
 | 
					        autoRepeatInterval: 300
 | 
				
			||||||
        onPressed: viewer.animatedRotationTarget -= 45
 | 
					        onPressed: viewer.animatedRotationTarget -= 45
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        HPopupShortcut {
 | 
					        HPopupShortcut {
 | 
				
			||||||
@@ -88,7 +88,7 @@ HFlow {
 | 
				
			|||||||
        toolTip.text: qsTr("Rotate right")
 | 
					        toolTip.text: qsTr("Rotate right")
 | 
				
			||||||
        autoRepeat: true
 | 
					        autoRepeat: true
 | 
				
			||||||
        autoRepeatDelay: 20
 | 
					        autoRepeatDelay: 20
 | 
				
			||||||
        autoRepeatInterval: theme.animationDuration * 3
 | 
					        autoRepeatInterval: 300
 | 
				
			||||||
        onPressed: viewer.animatedRotationTarget += 45
 | 
					        onPressed: viewer.animatedRotationTarget += 45
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        HPopupShortcut {
 | 
					        HPopupShortcut {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user