[vlc-commits] qml: add a visual indication when the KeyNavigableListView is scrollable

Pierre Lamot git at videolan.org
Fri Jan 10 15:06:42 CET 2020


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Dec 19 16:09:03 2019 +0100| [904d79b7b9834fcc215ca3d2f4e6cb309c655ed5] | committer: Jean-Baptiste Kempf

qml: add a visual indication when the KeyNavigableListView is scrollable

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=904d79b7b9834fcc215ca3d2f4e6cb309c655ed5
---

 modules/gui/qt/widgets/qml/KeyNavigableListView.qml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/modules/gui/qt/widgets/qml/KeyNavigableListView.qml b/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
index 68590b12e3..fb08bec6dc 100644
--- a/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
+++ b/modules/gui/qt/widgets/qml/KeyNavigableListView.qml
@@ -208,6 +208,17 @@ NavigableFocusScope {
                 actionAtIndex(currentIndex)
             }
         }
+
+        Rectangle {
+            anchors { bottom: parent.bottom; left: parent.left;  right: parent.right }
+            z: 1
+            visible: orientation === ListView.Vertical && !view.atYEnd
+            height: highlightMargin * 2
+            gradient: Gradient{
+                GradientStop { position: 0.0; color: "transparent" }
+                GradientStop { position: 1.0; color: VLCStyle.colors.bg }
+            }
+        }
     }
 
     RoundButton{



More information about the vlc-commits mailing list