From ba024e7fcda514bab9d14c9ab24f81f497919360 Mon Sep 17 00:00:00 2001 From: Keyitdev <70140437+Keyitdev@users.noreply.github.com> Date: Tue, 31 Dec 2024 16:41:11 +0100 Subject: [PATCH] Fix: Fixed problem that occurs when FullBlur and HaveFormBackground is set to true but PartialBlur is false and FormPosition isn't center. Added the ability to set gifs as wallpapers. --- Main.qml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Main.qml b/Main.qml index 7a5c2a5..6a04aac 100644 --- a/Main.qml +++ b/Main.qml @@ -64,7 +64,7 @@ Pane { width: parent.width anchors.fill: parent z: 1 - + color: config.DimBackgroundColor opacity: config.DimBackground } @@ -179,7 +179,7 @@ Pane { ] } - Image { + AnimatedImage { id: backgroundImage height: parent.height @@ -197,6 +197,7 @@ Pane { config.BackgroundVerticalAlignment == "bottom" ? Image.AlignBottom : Image.AlignVCenter + speed: config.BackgroundSpeed == "" ? 1.0 : config.BackgroundSpeed source: config.background || config.Background fillMode: config.CropBackground == "true" ? Image.PreserveAspectCrop : Image.PreserveAspectFit asynchronous: true @@ -224,10 +225,15 @@ Pane { MultiEffect { id: blur - + height: parent.height - width: config.FullBlur == "true" ? parent.width : form.width - anchors.centerIn: config.FullBlur == "true" ? parent : form + + // width: config.FullBlur == "true" ? parent.width : form.width + // anchors.centerIn: config.FullBlur == "true" ? parent : form + + // This solves problem when FullBlur and HaveFormBackground is set to true but PartialBlur is false and FormPosition isn't center. + width: (config.FullBlur == "true" && config.PartialBlur == "false" && config.FormPosition != "center" ) ? parent.width - formBackground.width : config.FullBlur == "true" ? parent.width : form.width + anchors.centerIn: config.FullBlur == "true" ? backgroundImage : form source: config.FullBlur == "true" ? backgroundImage : blurMask blurEnabled: true