Fix header blur
This commit is contained in:
parent
f19196da8b
commit
f4ef1a08c9
@ -239,13 +239,17 @@ Page {
|
|||||||
id: contentContainer
|
id: contentContainer
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
clip: true
|
clip: true
|
||||||
// visible: false
|
|
||||||
|
|
||||||
property int headerSize: 48
|
property int headerSize: 48
|
||||||
|
|
||||||
readonly property int scrollOffset: swipeView.currentItem.item.contentY
|
readonly property int scrollOffset: swipeView.currentItem.item.contentY
|
||||||
readonly property int headerBlurSize: Math.min(headerSize, scrollOffset * 2)
|
readonly property int headerBlurSize: Math.min(headerSize, scrollOffset * 2)
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
width: parent.width
|
||||||
|
height: contentContainer.headerBlurSize
|
||||||
|
color: Style.backgroundColor
|
||||||
|
}
|
||||||
|
|
||||||
SwipeView {
|
SwipeView {
|
||||||
id: swipeView
|
id: swipeView
|
||||||
|
|||||||
Reference in New Issue
Block a user