HNumberAnimation component for standard duration
This commit is contained in:
@@ -88,11 +88,10 @@ HColumnLayout {
|
||||
//onActiveViewChanged:
|
||||
//activeView ? restoreAnimation.start() : hideAnimation.start()
|
||||
|
||||
//NumberAnimation {
|
||||
//HNumberAnimation {
|
||||
//id: hideAnimation
|
||||
//target: roomSidePane
|
||||
//properties: "width"
|
||||
//duration: HStyle.animationDuration
|
||||
//from: target.width
|
||||
//to: 0
|
||||
|
||||
@@ -102,11 +101,10 @@ HColumnLayout {
|
||||
//}
|
||||
//}
|
||||
|
||||
//NumberAnimation {
|
||||
//HNumberAnimation {
|
||||
//id: restoreAnimation
|
||||
//target: roomSidePane
|
||||
//properties: "width"
|
||||
//duration: HStyle.animationDuration
|
||||
//from: 0
|
||||
//to: target.oldWidth
|
||||
|
||||
|
@@ -80,10 +80,7 @@ HRectangle {
|
||||
}
|
||||
|
||||
Behavior on Layout.preferredWidth {
|
||||
NumberAnimation {
|
||||
id: buttonsAnimation
|
||||
duration: HStyle.animationDuration
|
||||
}
|
||||
HNumberAnimation { id: buttonsAnimation }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -97,7 +94,7 @@ HRectangle {
|
||||
iconName: "reduced_room_buttons"
|
||||
|
||||
Behavior on opacity {
|
||||
NumberAnimation { duration: buttonsAnimation.duration * 2 }
|
||||
HNumberAnimation { duration: buttonsAnimation.duration * 2 }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -6,9 +6,7 @@ HColumnLayout {
|
||||
property bool collapsed: false
|
||||
property int normalSpacing: collapsed ? 0 : 8
|
||||
|
||||
Behavior on normalSpacing {
|
||||
NumberAnimation { duration: HStyle.animationDuration }
|
||||
}
|
||||
Behavior on normalSpacing { HNumberAnimation {} }
|
||||
|
||||
HListView {
|
||||
id: memberList
|
||||
|
@@ -9,9 +9,7 @@ HRectangle {
|
||||
implicitWidth: childrenRect.width
|
||||
implicitHeight: typingLabel.text ? childrenRect.height : 0
|
||||
|
||||
Behavior on implicitHeight {
|
||||
NumberAnimation { duration: HStyle.animationDuration }
|
||||
}
|
||||
Behavior on implicitHeight { HNumberAnimation {} }
|
||||
|
||||
Row {
|
||||
spacing: 8
|
||||
|
Reference in New Issue
Block a user