mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
homescreens/folio: Add wallpaper blur
This commit is contained in:
parent
83ce339cda
commit
e23c763018
1 changed files with 14 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue