Files
z-bar-qt/Helpers/CachingImage.qml
Zacharias-Brohn 07e399f6d9 lots of changes
2025-11-19 17:01:20 +01:00

29 lines
479 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 {
target: QsWindow.window
function onDevicePixelRatioChanged(): void {
manager.updateSource();
}
}
CachingImageManager {
id: manager
item: root
cacheDir: Qt.resolvedUrl(Paths.imagecache)
}
}