Fix wallpaper source size
This commit is contained in:
parent
2fb64748b6
commit
eb9085cc8e
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
import QtQuick 2.12
|
import QtQuick 2.12
|
||||||
import QtQuick.Controls 2.12
|
import QtQuick.Controls 2.12
|
||||||
import QtQuick.Layouts 1.12
|
import QtQuick.Layouts 1.12
|
||||||
|
import QtQuick.Window 2.12
|
||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
|
|
||||||
import Cutefish.FileManager 1.0
|
import Cutefish.FileManager 1.0
|
||||||
|
@ -38,7 +39,8 @@ Item {
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
source: "file://" + settings.wallpaper
|
source: "file://" + settings.wallpaper
|
||||||
sourceSize: Qt.size(width, height)
|
sourceSize: Qt.size(width * Screen.devicePixelRatio,
|
||||||
|
height * Screen.devicePixelRatio)
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectCrop
|
||||||
clip: true
|
clip: true
|
||||||
cache: false
|
cache: false
|
||||||
|
|
Loading…
Reference in a new issue