mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
homescreens/halcyon: Add animation toggle support to favorites view
This commit is contained in:
parent
baabcfe335
commit
e80408a921
1 changed files with 8 additions and 8 deletions
|
|
@ -92,7 +92,7 @@ Item {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
target: favoritesGrid
|
target: favoritesGrid
|
||||||
properties: 'translateX'
|
properties: 'translateX'
|
||||||
duration: 200
|
duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0
|
||||||
from: 0
|
from: 0
|
||||||
to: -PlasmaCore.Units.gridUnit
|
to: -PlasmaCore.Units.gridUnit
|
||||||
easing.type: Easing.InOutQuad
|
easing.type: Easing.InOutQuad
|
||||||
|
|
@ -100,7 +100,7 @@ Item {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
target: favoritesGrid
|
target: favoritesGrid
|
||||||
properties: 'opacity'
|
properties: 'opacity'
|
||||||
duration: 200
|
duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0
|
||||||
from: 1
|
from: 1
|
||||||
to: 0
|
to: 0
|
||||||
easing.type: Easing.InOutQuad
|
easing.type: Easing.InOutQuad
|
||||||
|
|
@ -111,7 +111,7 @@ Item {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
target: folderGrid
|
target: folderGrid
|
||||||
properties: 'translateX'
|
properties: 'translateX'
|
||||||
duration: 200
|
duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0
|
||||||
from: PlasmaCore.Units.gridUnit
|
from: PlasmaCore.Units.gridUnit
|
||||||
to: 0
|
to: 0
|
||||||
easing.type: Easing.InOutQuad
|
easing.type: Easing.InOutQuad
|
||||||
|
|
@ -119,7 +119,7 @@ Item {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
target: folderGrid
|
target: folderGrid
|
||||||
properties: 'opacity'
|
properties: 'opacity'
|
||||||
duration: 200
|
duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0
|
||||||
from: 0
|
from: 0
|
||||||
to: 1
|
to: 1
|
||||||
easing.type: Easing.InOutQuad
|
easing.type: Easing.InOutQuad
|
||||||
|
|
@ -134,7 +134,7 @@ Item {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
target: folderGrid
|
target: folderGrid
|
||||||
properties: 'translateX'
|
properties: 'translateX'
|
||||||
duration: 200
|
duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0
|
||||||
from: 0
|
from: 0
|
||||||
to: PlasmaCore.Units.gridUnit
|
to: PlasmaCore.Units.gridUnit
|
||||||
easing.type: Easing.InOutQuad
|
easing.type: Easing.InOutQuad
|
||||||
|
|
@ -142,7 +142,7 @@ Item {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
target: folderGrid
|
target: folderGrid
|
||||||
properties: 'opacity'
|
properties: 'opacity'
|
||||||
duration: 200
|
duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0
|
||||||
from: 1
|
from: 1
|
||||||
to: 0
|
to: 0
|
||||||
easing.type: Easing.InOutQuad
|
easing.type: Easing.InOutQuad
|
||||||
|
|
@ -153,7 +153,7 @@ Item {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
target: favoritesGrid
|
target: favoritesGrid
|
||||||
properties: 'translateX'
|
properties: 'translateX'
|
||||||
duration: 200
|
duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0
|
||||||
from: -PlasmaCore.Units.gridUnit
|
from: -PlasmaCore.Units.gridUnit
|
||||||
to: 0
|
to: 0
|
||||||
easing.type: Easing.InOutQuad
|
easing.type: Easing.InOutQuad
|
||||||
|
|
@ -161,7 +161,7 @@ Item {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
target: favoritesGrid
|
target: favoritesGrid
|
||||||
properties: 'opacity'
|
properties: 'opacity'
|
||||||
duration: 200
|
duration: MobileShell.MobileShellSettings.animationsEnabled ? 200 : 0
|
||||||
from: 0
|
from: 0
|
||||||
to: 1
|
to: 1
|
||||||
easing.type: Easing.InOutQuad
|
easing.type: Easing.InOutQuad
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue