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.

This commit is contained in:
Keyitdev
2024-12-31 16:41:11 +01:00
parent 8d0c59ded3
commit ba024e7fcd
+10 -4
View File
@@ -64,7 +64,7 @@ Pane {
width: parent.width width: parent.width
anchors.fill: parent anchors.fill: parent
z: 1 z: 1
color: config.DimBackgroundColor
opacity: config.DimBackground opacity: config.DimBackground
} }
@@ -179,7 +179,7 @@ Pane {
] ]
} }
Image { AnimatedImage {
id: backgroundImage id: backgroundImage
height: parent.height height: parent.height
@@ -197,6 +197,7 @@ Pane {
config.BackgroundVerticalAlignment == "bottom" ? config.BackgroundVerticalAlignment == "bottom" ?
Image.AlignBottom : Image.AlignVCenter Image.AlignBottom : Image.AlignVCenter
speed: config.BackgroundSpeed == "" ? 1.0 : config.BackgroundSpeed
source: config.background || config.Background source: config.background || config.Background
fillMode: config.CropBackground == "true" ? Image.PreserveAspectCrop : Image.PreserveAspectFit fillMode: config.CropBackground == "true" ? Image.PreserveAspectCrop : Image.PreserveAspectFit
asynchronous: true asynchronous: true
@@ -226,8 +227,13 @@ Pane {
id: blur id: blur
height: parent.height 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 source: config.FullBlur == "true" ? backgroundImage : blurMask
blurEnabled: true blurEnabled: true