From e23c763018787983e40950e562570a2c85aa43d2 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Wed, 15 Nov 2023 08:42:43 -0800 Subject: [PATCH] homescreens/folio: Add wallpaper blur --- .../homescreens/folio/package/contents/ui/main.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/containments/homescreens/folio/package/contents/ui/main.qml b/containments/homescreens/folio/package/contents/ui/main.qml index dc777b2d..26e1ca53 100644 --- a/containments/homescreens/folio/package/contents/ui/main.qml +++ b/containments/homescreens/folio/package/contents/ui/main.qml @@ -15,6 +15,8 @@ import org.kde.plasma.private.mobileshell.state as MobileShellState import org.kde.private.mobile.homescreen.folio 1.0 as Folio import org.kde.plasma.private.mobileshell.windowplugin as WindowPlugin +import Qt5Compat.GraphicalEffects + ContainmentItem { id: root @@ -28,6 +30,18 @@ ContainmentItem { forceActiveFocus(); } + // wallpaper blur + FastBlur { + radius: 50 + source: Plasmoid.wallpaperGraphicsObject + anchors.fill: parent + opacity: Math.max( + Folio.HomeScreenState.appDrawerOpenProgress, + Folio.HomeScreenState.searchWidgetOpenProgress, + Folio.HomeScreenState.folderOpenProgress + ) + } + function homeAction() { const isInWindow = (!WindowPlugin.WindowUtil.isShowingDesktop && WindowPlugin.WindowMaximizedTracker.showingWindow);