Merge pull request #58 from quadbyte/overview-blur
Overview: using MultiEffect blur instead of the FastBlur
This commit is contained in:
commit
f9b42c74f2
1 changed files with 7 additions and 5 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
import QtQuick.Effects
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Wayland
|
import Quickshell.Wayland
|
||||||
import Qt5Compat.GraphicalEffects
|
import Qt5Compat.GraphicalEffects
|
||||||
|
|
@ -35,19 +36,20 @@ ShellRoot {
|
||||||
smooth: true
|
smooth: true
|
||||||
visible: wallpaperSource !== "" // Show the original for FastBlur input
|
visible: wallpaperSource !== "" // Show the original for FastBlur input
|
||||||
}
|
}
|
||||||
FastBlur {
|
MultiEffect {
|
||||||
|
id: overviewBgBlur
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
visible: wallpaperSource !== ""
|
|
||||||
source: bgImage
|
source: bgImage
|
||||||
radius: 18 // Adjust blur strength as needed
|
blurEnabled: true
|
||||||
transparentBorder: true
|
blur: 0.48 // controls blur strength (0 to 1)
|
||||||
|
blurMax: 128 // max blur radius in pixels
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Qt.rgba(
|
color: Qt.rgba(
|
||||||
Theme.backgroundPrimary.r,
|
Theme.backgroundPrimary.r,
|
||||||
Theme.backgroundPrimary.g,
|
Theme.backgroundPrimary.g,
|
||||||
Theme.backgroundPrimary.b, 0.6)
|
Theme.backgroundPrimary.b, 0.5)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue