Commit 61375dc4 authored by Devin Lin's avatar Devin Lin 🎨
Browse files

shell: Load wallpaper images asynchronously

parent 102ff4db
......@@ -79,17 +79,21 @@ Controls.Drawer {
width: PlasmaCore.Units.iconSizes.large
height: width
icon: "view-preview"
visible: !walliePreview.visible
visible: !wallpaperPreviewLoader.visible
}
Addons.QPixmapItem {
id: walliePreview
anchors.fill: parent
Loader {
id: wallpaperPreviewLoader
visible: model.screenshot != null
smooth: true
pixmap: model.screenshot
fillMode: Image.PreserveAspectCrop
anchors.fill: parent
active: true
asynchronous: true
sourceComponent: Addons.QPixmapItem {
id: walliePreview
smooth: true
pixmap: model.screenshot
fillMode: Image.PreserveAspectCrop
}
}
}
onClicked: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment