Skip to content

Commit

Permalink
Merge pull request #72 from neochapay/feedpage_fix
Browse files Browse the repository at this point in the history
[FeedPage] Add feedpage background
  • Loading branch information
locusf authored Mar 11, 2018
2 parents 7dc736f + f265c15 commit 5a825cb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/qml/FeedsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,23 @@ Flickable {
clip: true
contentHeight: rootitem.height
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 {
id: rootitem
width: parent.width
Expand Down

0 comments on commit 5a825cb

Please sign in to comment.