From f265c15cf46cae3912d3cbd8f14e65a5caccae92 Mon Sep 17 00:00:00 2001 From: Chupligin Sergey Date: Sat, 10 Mar 2018 18:43:10 +0300 Subject: [PATCH] [FeedPage] Add feedpage background --- src/qml/FeedsPage.qml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/qml/FeedsPage.qml b/src/qml/FeedsPage.qml index d44d2097..c9e6dc60 100644 --- a/src/qml/FeedsPage.qml +++ b/src/qml/FeedsPage.qml @@ -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