homescreens/folio: Blur faster during swipes

This commit is contained in:
Devin Lin 2023-11-17 23:53:01 -08:00
parent b515d6ffba
commit c9784b143d

View file

@ -46,12 +46,14 @@ ContainmentItem {
autoPaddingEnabled: false autoPaddingEnabled: false
source: Plasmoid.wallpaperGraphicsObject source: Plasmoid.wallpaperGraphicsObject
anchors.fill: parent anchors.fill: parent
opacity: Math.max( opacity: Math.min(1,
Math.max(
1 - homeScreen.contentOpacity, 1 - homeScreen.contentOpacity,
Folio.HomeScreenState.appDrawerOpenProgress, Folio.HomeScreenState.appDrawerOpenProgress * 2, // blur faster during swipe
Folio.HomeScreenState.searchWidgetOpenProgress, Folio.HomeScreenState.searchWidgetOpenProgress * 1.5, // blur faster during swipe
Folio.HomeScreenState.folderOpenProgress Folio.HomeScreenState.folderOpenProgress
) )
)
} }
function homeAction() { function homeAction() {