Fix header blur

This commit is contained in:
Michael Zanetti 2021-12-14 23:47:12 +01:00
parent f19196da8b
commit f4ef1a08c9

View File

@ -239,13 +239,17 @@ Page {
id: contentContainer
anchors.fill: parent
clip: true
// visible: false
property int headerSize: 48
readonly property int scrollOffset: swipeView.currentItem.item.contentY
readonly property int headerBlurSize: Math.min(headerSize, scrollOffset * 2)
Rectangle {
width: parent.width
height: contentContainer.headerBlurSize
color: Style.backgroundColor
}
SwipeView {
id: swipeView