wallpapers/image: Multiply devicePixelRatio for targetSize

This fixes that "Open Containing Folder" highlights the image with a wrong resolution
in a package.
wilder-5.25
Fushan Wen 4 years ago
parent dbc2488fde
commit 85c90df7ae
No known key found for this signature in database
GPG Key ID: 2E48D1487C91DCAA
  1. 4
      wallpapers/image/imagepackage/contents/ui/config.qml

@ -47,10 +47,10 @@ ColumnLayout {
id: imageWallpaper
targetSize: {
if (typeof plasmoid !== "undefined") {
return Qt.size(Plasmoid.width, Plasmoid.height)
return Qt.size(Plasmoid.width * Screen.devicePixelRatio, Plasmoid.height * Screen.devicePixelRatio)
}
// Lock screen configuration case
return Qt.size(Screen.width, Screen.height)
return Qt.size(Screen.width * Screen.devicePixelRatio, Screen.height * Screen.devicePixelRatio)
}
onSlidePathsChanged: cfg_SlidePaths = slidePaths
onUncheckedSlidesChanged: cfg_UncheckedSlides = uncheckedSlides

Loading…
Cancel
Save