Files
z-bar-qt/Greeter/Helpers/CachingImage.qml
Zacharias-Brohn 6b482979fe greeter test
2026-03-18 23:39:37 +01:00

29 lines
410 B
QML

import ZShell.Internal
import Quickshell
import QtQuick
import qs.Paths
Image {
id: root
property alias path: manager.path
asynchronous: true
fillMode: Image.PreserveAspectCrop
Connections {
function onDevicePixelRatioChanged(): void {
manager.updateSource();
}
target: QsWindow.window
}
CachingImageManager {
id: manager
cacheDir: Qt.resolvedUrl(Paths.imagecache)
item: root
}
}