HNumberAnimation component for standard duration

This commit is contained in:
miruka
2019-07-06 17:42:04 -04:00
parent 7b92264ef6
commit 6db870a372
13 changed files with 24 additions and 44 deletions

View File

@@ -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

View File

@@ -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 }
}
}
}

View File

@@ -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

View File

@@ -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