mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06:00
Add add/remove transitions so expand/collapse is animated
This commit is contained in:
parent
fa9f9b41ab
commit
4c9b9b68ef
1 changed files with 22 additions and 0 deletions
|
@ -68,6 +68,28 @@ ScrollView
|
||||||
|
|
||||||
UM.I18nCatalog { id: catalog; name: "uranium"; }
|
UM.I18nCatalog { id: catalog; name: "uranium"; }
|
||||||
|
|
||||||
|
add: Transition {
|
||||||
|
SequentialAnimation {
|
||||||
|
NumberAnimation { properties: "height"; from: 0; duration: 100 }
|
||||||
|
NumberAnimation { properties: "opacity"; from: 0; duration: 100 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
remove: Transition {
|
||||||
|
SequentialAnimation {
|
||||||
|
NumberAnimation { properties: "opacity"; to: 0; duration: 100 }
|
||||||
|
NumberAnimation { properties: "height"; to: 0; duration: 100 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
addDisplaced: Transition {
|
||||||
|
NumberAnimation { properties: "x,y"; duration: 100 }
|
||||||
|
}
|
||||||
|
removeDisplaced: Transition {
|
||||||
|
SequentialAnimation {
|
||||||
|
PauseAnimation { duration: 100; }
|
||||||
|
NumberAnimation { properties: "x,y"; duration: 100 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Menu
|
Menu
|
||||||
{
|
{
|
||||||
id: contextMenu;
|
id: contextMenu;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue