Verified Commit 85c90df7 authored by Fushan Wen's avatar Fushan Wen
Browse files

wallpapers/image: Multiply devicePixelRatio for targetSize

This fixes that "Open Containing Folder" highlights the image with a wrong resolution
in a package.
parent dbc2488f
Pipeline #162439 passed with stage
in 8 minutes
......@@ -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
......
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