From eb9085cc8eacc5ba8f4a7060b7d1a40d06c71580 Mon Sep 17 00:00:00 2001 From: cutefishd Date: Tue, 13 Apr 2021 13:56:09 +0800 Subject: [PATCH] Fix wallpaper source size --- qml/Desktop/main.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qml/Desktop/main.qml b/qml/Desktop/main.qml index f6ba0b3..3d37fd9 100644 --- a/qml/Desktop/main.qml +++ b/qml/Desktop/main.qml @@ -1,6 +1,7 @@ import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick.Layouts 1.12 +import QtQuick.Window 2.12 import QtGraphicalEffects 1.0 import Cutefish.FileManager 1.0 @@ -38,7 +39,8 @@ Item { Image { source: "file://" + settings.wallpaper - sourceSize: Qt.size(width, height) + sourceSize: Qt.size(width * Screen.devicePixelRatio, + height * Screen.devicePixelRatio) fillMode: Image.PreserveAspectCrop clip: true cache: false