Standardize animation durations

This commit is contained in:
miruka
2019-05-14 15:15:10 -04:00
parent 20f8e83a01
commit 2a687f8eee
11 changed files with 23 additions and 12 deletions

View File

@@ -71,7 +71,10 @@ Column {
userId: roomCategoriesListUserId
Behavior on height {
NumberAnimation { id: heightAnimation; duration: 100 }
NumberAnimation {
id: heightAnimation;
duration: HStyle.animationDuration
}
}
}
}

View File

@@ -15,6 +15,8 @@ HButton {
origin.x: expandButton.iconDimension / 2
origin.y: expandButton.iconDimension / 2
angle: expandableItem.expanded ? 90 : 180
Behavior on angle { NumberAnimation { duration: 100 } }
Behavior on angle {
NumberAnimation { duration: HStyle.animationDuration }
}
}
}

View File

@@ -44,7 +44,10 @@ Column {
category: name
Behavior on height {
NumberAnimation { id: heightAnimation; duration: 100 }
NumberAnimation {
id: heightAnimation
duration: HStyle.animationDuration
}
}
}
}

View File

@@ -21,7 +21,7 @@ HRectangle {
Layout.leftMargin: spacing
Behavior on spacing {
NumberAnimation { duration: 120 }
NumberAnimation { duration: HStyle.animationDuration }
}
}