refactor: introduce LoadingAnimation for reusability

This commit is contained in:
Pascal Precht 2021-02-08 13:16:28 +01:00 committed by Iuri Matias
parent e61d91dd51
commit 4050a40c8f
2 changed files with 21 additions and 15 deletions

View File

@ -252,21 +252,7 @@ StackLayout {
Component {
id: loadingIndicator
SVGImage {
id: loadingImg
source: "../../../app/img/loading.svg"
width: 25
height: 25
fillMode: Image.Stretch
RotationAnimator {
target: loadingImg;
from: 0;
to: 360;
duration: 1200
running: true
loops: Animation.Infinite
}
}
LoadingAnimation {}
}
StatusChatInput {

View File

@ -0,0 +1,20 @@
import QtQuick 2.13
import "../../../../imports"
import "../../../../shared"
SVGImage {
id: loadingImg
source: "../../../../app/img/loading.svg"
width: 25
height: 25
fillMode: Image.Stretch
RotationAnimator {
target: loadingImg;
from: 0;
to: 360;
duration: 1200
running: true
loops: Animation.Infinite
}
}