diff --git a/touch/EpisodeDetail.qml b/touch/EpisodeDetail.qml index b771a66..fc27cb1 100644 --- a/touch/EpisodeDetail.qml +++ b/touch/EpisodeDetail.qml @@ -59,5 +59,7 @@ SlidePage { } } } + + PScrollDecorator { flickable: flickable } } diff --git a/touch/PListView.qml b/touch/PListView.qml index 4c929f9..3afcea1 100644 --- a/touch/PListView.qml +++ b/touch/PListView.qml @@ -28,5 +28,7 @@ ListView { property string title header: SlidePageHeader { title: pListView.title } + + PScrollDecorator { flickable: pListView } } diff --git a/touch/PScrollDecorator.qml b/touch/PScrollDecorator.qml new file mode 100644 index 0000000..c9a59c9 --- /dev/null +++ b/touch/PScrollDecorator.qml @@ -0,0 +1,34 @@ + +/** + * + * gPodder QML UI Reference Implementation + * Copyright (c) 2013, Thomas Perl + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + * PERFORMANCE OF THIS SOFTWARE. + * + */ + +import QtQuick 2.0 + +Rectangle { + property var flickable + + x: flickable.width - width + y: flickable.visibleArea.yPosition * flickable.height + width: 5 * pgst.scalef + height: flickable.visibleArea.heightRatio * flickable.height + visible: flickable.visibleArea.heightRatio < 1 + color: '#ffffff' + opacity: flickable.moving ? .2 : 0 + Behavior on opacity { PropertyAnimation { duration: 100 } } +} diff --git a/touch/PlayerPage.qml b/touch/PlayerPage.qml index 9aed9ae..39ba6e2 100644 --- a/touch/PlayerPage.qml +++ b/touch/PlayerPage.qml @@ -117,4 +117,6 @@ SlidePage { } } } + + PScrollDecorator { flickable: flickable } } diff --git a/touch/StartPage.qml b/touch/StartPage.qml index f4ece3b..1aaa3d0 100644 --- a/touch/StartPage.qml +++ b/touch/StartPage.qml @@ -43,6 +43,8 @@ SlidePage { } Flickable { + id: flickable + Connections { target: py onReadyChanged: { @@ -235,5 +237,7 @@ SlidePage { } } } + + PScrollDecorator { flickable: flickable } }