mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 01:26:46 +00:00
29 lines
482 B
QML
29 lines
482 B
QML
import qs.utils
|
|
import Caelestia.Internal
|
|
import Quickshell
|
|
import QtQuick
|
|
|
|
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)
|
|
}
|
|
}
|