diff options
author | Joseph Donofry <joedonofry@gmail.com> | 2021-06-09 19:01:49 -0400 |
---|---|---|
committer | Joseph Donofry <joedonofry@gmail.com> | 2021-06-09 19:01:49 -0400 |
commit | 284ca27fdc188d32f7638282818e31b21b02cc17 (patch) | |
tree | 24661053286981c97ff77326646419e67a13fcf9 /resources/qml/ui | |
parent | Change variable for running (diff) | |
download | nheko-284ca27fdc188d32f7638282818e31b21b02cc17.tar.xz |
Add nheko logo spinner to relevant places in UI
Diffstat (limited to 'resources/qml/ui')
-rw-r--r-- | resources/qml/ui/EmojiEmitter.qml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/resources/qml/ui/EmojiEmitter.qml b/resources/qml/ui/EmojiEmitter.qml new file mode 100644 index 00000000..953b0352 --- /dev/null +++ b/resources/qml/ui/EmojiEmitter.qml @@ -0,0 +1,60 @@ +import QtQuick 2.0 +import QtQuick.Particles 2.0 + +Item { + id: bg + + readonly property int velocity: 50 + + ParticleSystem { + id: particleSys + } + + Emitter { + id: particles + + anchors.horizontalCenter: parent.horizontalCenter + anchors.top: parent.top + width: parent.width + system: particleSys + emitRate: 10 + lifeSpan: (parent.height / bg.velocity) * 1000 //8000 + lifeSpanVariation: 1000 + maximumEmitted: 1000 + size: 5 + sizeVariation: 15 + + velocity: AngleDirection { + angle: 90 + angleVariation: 10 + magnitude: bg.velocity + } + + } + + ItemParticle { + id: particle + + system: particleSys + delegate: itemDelegate + } + + Component { + id: itemDelegate + + Item { + id: container + + x: bg.width / 2 + y: 0 + + Text { + anchors.fill: parent + text: "🎉" + } + + } + + } + +} |