From 85c90df7ae3065eeb231fc1320e122b5e82fcf5a Mon Sep 17 00:00:00 2001 From: Fushan Wen Date: Mon, 11 Apr 2022 07:03:50 +0800 Subject: [PATCH] wallpapers/image: Multiply devicePixelRatio for targetSize This fixes that "Open Containing Folder" highlights the image with a wrong resolution in a package. --- wallpapers/image/imagepackage/contents/ui/config.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wallpapers/image/imagepackage/contents/ui/config.qml b/wallpapers/image/imagepackage/contents/ui/config.qml index c65a8193a..854c69444 100644 --- a/wallpapers/image/imagepackage/contents/ui/config.qml +++ b/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