Skip to content
Snippets Groups Projects
Unverified Commit 94d6694a authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[ui] first attempt at animated birds

parent 90cee035
No related branches found
No related tags found
No related merge requests found
...@@ -100,13 +100,19 @@ Item { ...@@ -100,13 +100,19 @@ Item {
height: 120 height: 120
} }
Image { AnimatedImage {
id: connectionImage id: connectionImage
height: 160 height: 160
speed: 0.8
source: "../resources/icon-noshield.svg" source: "../resources/icon-noshield.svg"
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
onStatusChanged: playing = (status == AnimatedImage.Ready)
} }
// TODO this can be synced with opacity serial animation, see
// https://doc.qt.io/qt-5/qml-qtquick-animatedimage.html#example-usage
// If you want to customize your asset, here's how:
// convert -delay 50 -loop 0 ravens2_*.png ravens.gif
VerticalSpacer { VerticalSpacer {
id: spacerPostImg id: spacerPostImg
......
...@@ -31,7 +31,7 @@ StateGroup { ...@@ -31,7 +31,7 @@ StateGroup {
} }
PropertyChanges { PropertyChanges {
target: connectionImage target: connectionImage
source: "../resources/ravens.svg" source: "../resources/ravens.gif"
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
PropertyChanges { PropertyChanges {
...@@ -130,7 +130,7 @@ StateGroup { ...@@ -130,7 +130,7 @@ StateGroup {
} }
PropertyChanges { PropertyChanges {
target: connectionImage target: connectionImage
source: "../resources/ravens.svg" source: "../resources/ravens.gif"
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
} }
PropertyChanges { PropertyChanges {
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
<file>resources/arrow-left.svg</file> <file>resources/arrow-left.svg</file>
<file>resources/globe.svg</file> <file>resources/globe.svg</file>
<file>resources/ravens.svg</file> <file>resources/ravens.svg</file>
<file>resources/ravens.gif</file>
<file>resources/riseup-icon.svg</file> <file>resources/riseup-icon.svg</file>
<file>resources/spy.gif</file> <file>resources/spy.gif</file>
<file>resources/quit.svg</file> <file>resources/quit.svg</file>
......
gui/resources/ravens.gif

1.86 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment