Commit 55df4d81 authored by Tanbir Jishan's avatar Tanbir Jishan Committed by Nate Graham
Browse files

applets/kickoff: Animate letter navigation view when closed or opened

The default is no motion-based animation, which can be improved.
parent 00142318
Pipeline #195011 passed with stage
in 3 minutes and 31 seconds
......@@ -25,6 +25,39 @@ BasePage {
}
}
contentAreaComponent: VerticalStackView {
popEnter: Transition {
NumberAnimation {
properties: "x"
from: 0.5 * root.width
to: 0
duration: PlasmaCore.Units.longDuration
easing.type: Easing.OutCubic
}
NumberAnimation { property: "opacity"
from: 0.0
to: 1.0
duration: PlasmaCore.Units.longDuration
easing.type: Easing.OutCubic
}
}
pushEnter: Transition {
NumberAnimation {
properties: "x"
from: 0.5 * -root.width
to: 0
duration: PlasmaCore.Units.longDuration
easing.type: Easing.OutCubic
}
NumberAnimation { property: "opacity"
from: 0.0
to: 1.0
duration: PlasmaCore.Units.longDuration
easing.type: Easing.OutCubic
}
}
id: stackView
readonly property string preferredFavoritesViewObjectName: plasmoid.configuration.favoritesDisplay == 0 ? "favoritesGridView" : "favoritesListView"
readonly property Component preferredFavoritesViewComponent: plasmoid.configuration.favoritesDisplay == 0 ? favoritesGridViewComponent : favoritesListViewComponent
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment