Commit 1d36d107 authored by Nate Graham's avatar Nate Graham
Browse files

ViewSelector: animate Genre section header's appearance/disappearance

parent c08db832
Pipeline #147140 passed with stage
in 3 minutes and 41 seconds
......@@ -68,11 +68,18 @@ ScrollView {
section.property: 'entryCategory'
section.delegate: Loader {
active: section !== "default"
active: section !== "default" && opacity > 0
sourceComponent: Kirigami.ListSectionHeader {
label: scrollView.implicitWidth == wideWidth ? section : ""
label: section
width: viewModeView.width
}
opacity: scrollView.implicitWidth === wideWidth ? 1 : 0
Behavior on opacity {
NumberAnimation {
easing.type: Easing.InOutQuad
duration: Kirigami.Units.longDuration
}
}
}
onCurrentItemChanged: if (!ignoreCurrentItemChanges) switchView(currentIndex)
......
Supports Markdown
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