Commit f265c15c authored by Chupligin Sergey's avatar Chupligin Sergey

[FeedPage] Add feedpage background

parent 4622bc51
...@@ -36,6 +36,23 @@ Flickable { ...@@ -36,6 +36,23 @@ Flickable {
clip: true clip: true
contentHeight: rootitem.height contentHeight: rootitem.height
contentWidth: parent.width contentWidth: parent.width
Rectangle{
id: bg
width: desktop.width
height: desktop.height-statusbar.height
color: "black"
opacity: 0.6
}
onXChanged: {
if(x < 0){
bg.opacity = 0.6*(desktop.width+x)/desktop.width
}else{
bg.opacity = 0.6*(desktop.width-x)/desktop.width
}
}
Item { Item {
id: rootitem id: rootitem
width: parent.width width: parent.width
......
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