From e80408a9211764d6449ee171e06af566d773868b Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Mon, 11 Jul 2022 22:30:18 -0400 Subject: [PATCH] homescreens/halcyon: Add animation toggle support to favorites view --- .../package/contents/ui/FavoritesView.qml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/containments/homescreens/halcyon/package/contents/ui/FavoritesView.qml b/containments/homescreens/halcyon/package/contents/ui/FavoritesView.qml index 87d7e37d..3daa2d26 100644 --- a/containments/homescreens/halcyon/package/contents/ui/FavoritesView.qml +++ b/containments/homescreens/halcyon/package/contents/ui/FavoritesView.qml @@ -92,7 +92,7 @@ Item { NumberAnimation { target: favoritesGrid properties: 'translateX' - duration: 200 + duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0 from: 0 to: -PlasmaCore.Units.gridUnit easing.type: Easing.InOutQuad @@ -100,7 +100,7 @@ Item { NumberAnimation { target: favoritesGrid properties: 'opacity' - duration: 200 + duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0 from: 1 to: 0 easing.type: Easing.InOutQuad @@ -111,7 +111,7 @@ Item { NumberAnimation { target: folderGrid properties: 'translateX' - duration: 200 + duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0 from: PlasmaCore.Units.gridUnit to: 0 easing.type: Easing.InOutQuad @@ -119,7 +119,7 @@ Item { NumberAnimation { target: folderGrid properties: 'opacity' - duration: 200 + duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0 from: 0 to: 1 easing.type: Easing.InOutQuad @@ -134,7 +134,7 @@ Item { NumberAnimation { target: folderGrid properties: 'translateX' - duration: 200 + duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0 from: 0 to: PlasmaCore.Units.gridUnit easing.type: Easing.InOutQuad @@ -142,7 +142,7 @@ Item { NumberAnimation { target: folderGrid properties: 'opacity' - duration: 200 + duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0 from: 1 to: 0 easing.type: Easing.InOutQuad @@ -153,7 +153,7 @@ Item { NumberAnimation { target: favoritesGrid properties: 'translateX' - duration: 200 + duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0 from: -PlasmaCore.Units.gridUnit to: 0 easing.type: Easing.InOutQuad @@ -161,7 +161,7 @@ Item { NumberAnimation { target: favoritesGrid properties: 'opacity' - duration: 200 + duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0 from: 0 to: 1 easing.type: Easing.InOutQuad