mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-07 07:49:28 -05:00
26 lines
681 B
QML
26 lines
681 B
QML
import QtQuick
|
|
import qs.services
|
|
import qs.modules.common
|
|
import qs.modules.common.widgets
|
|
import qs.modules.common.functions
|
|
|
|
Image {
|
|
asynchronous: true
|
|
retainWhileLoading: true
|
|
visible: opacity > 0
|
|
opacity: (status === Image.Ready) ? 1 : 0
|
|
Behavior on opacity {
|
|
animation: Appearance.animation.elementMoveEnter.numberAnimation.createObject(this)
|
|
}
|
|
|
|
property list<string> fallbacks: []
|
|
property int currentFallbackIndex: 0
|
|
|
|
onStatusChanged: {
|
|
if (status === Image.Error && currentFallbackIndex < fallbacks.length) {
|
|
source = fallbacks[currentFallbackIndex];
|
|
currentFallbackIndex += 1;
|
|
}
|
|
}
|
|
}
|