Commit 579bd584 authored by Shantanu Tushar's avatar Shantanu Tushar

Animate layout adjustments so header expansion is smooth

parent 3aec97bb
......@@ -167,6 +167,20 @@ FocusScope {
Layout.bottomMargin: isMaximized? 4 * Kirigami.Units.largeSpacing : 0
Layout.maximumWidth: contentZone.width - 2 * ((!portrait && !isMaximized) ? contentZone.width * 0.15 : 4 * Kirigami.Units.largeSpacing)
Behavior on Layout.topMargin {
NumberAnimation {
easing.type: Easing.InOutQuad
duration: Kirigami.Units.shortDuration
}
}
Behavior on Layout.leftMargin {
NumberAnimation {
easing.type: Easing.InOutQuad
duration: Kirigami.Units.shortDuration
}
}
Item {
id: images
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment