Merge branch 'tor_site_container' into teplitsa_tz
Containers page refactoring
This commit is contained in:
commit
6ee203a21d
22 changed files with 10641 additions and 748 deletions
35
client/ui/qml/Controls/FadeBehavior.qml
Normal file
35
client/ui/qml/Controls/FadeBehavior.qml
Normal file
|
@ -0,0 +1,35 @@
|
|||
import QtQuick 2.15
|
||||
import QtQml 2.15
|
||||
|
||||
Behavior {
|
||||
id: root
|
||||
|
||||
property QtObject fadeTarget: targetProperty.object
|
||||
property string fadeProperty: "scale"
|
||||
property int fadeDuration: 150
|
||||
property string easingType: "Quad"
|
||||
|
||||
property alias outAnimation: outAnimation
|
||||
property alias inAnimation: inAnimation
|
||||
|
||||
SequentialAnimation {
|
||||
NumberAnimation {
|
||||
id: outAnimation
|
||||
target: root.fadeTarget
|
||||
property: root.fadeProperty
|
||||
duration: root.fadeDuration
|
||||
to: 0
|
||||
easing.type: Easing["In"+root.easingType]
|
||||
}
|
||||
PropertyAction { }
|
||||
NumberAnimation {
|
||||
id: inAnimation
|
||||
target: root.fadeTarget
|
||||
property: root.fadeProperty
|
||||
duration: root.fadeDuration
|
||||
to: target[property]
|
||||
easing.type: Easing["Out"+root.easingType]
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue