mirror of
https://github.com/status-im/status-desktop.git
synced 2025-03-04 00:11:12 +00:00
refactor: introduce LoadingAnimation for reusability
This commit is contained in:
parent
e61d91dd51
commit
4050a40c8f
@ -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 {
|
||||
|
20
ui/app/AppLayouts/Chat/components/LoadingAnimation.qml
Normal file
20
ui/app/AppLayouts/Chat/components/LoadingAnimation.qml
Normal 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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user