[vlc-commits] qml: add separator for the top part of the first element in playlist listview

Fatih Uzunoglu git at videolan.org
Fri Jul 24 11:45:51 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Wed Jul  1 22:02:16 2020 +0300| [430f4968fa7e1bcb82adb37b4ecf76d0b2686a7e] | committer: Pierre Lamot

qml: add separator for the top part of the first element in playlist listview

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

 modules/gui/qt/playlist/qml/PlaylistListView.qml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/modules/gui/qt/playlist/qml/PlaylistListView.qml b/modules/gui/qt/playlist/qml/PlaylistListView.qml
index e70b9c15ba..7ff4f7c0ba 100644
--- a/modules/gui/qt/playlist/qml/PlaylistListView.qml
+++ b/modules/gui/qt/playlist/qml/PlaylistListView.qml
@@ -285,6 +285,16 @@ Widgets.NavigableFocusScope {
 
             delegate: Column {
 
+                Loader {
+                    active: (index === 0) // load only for the first element to prevent overlapping
+                    width: parent.width
+                    height: 1
+                    sourceComponent: Rectangle {
+                        color: VLCStyle.colors.playlistSeparator
+                        opacity: VLCStyle.colors.isThemeDark ? 0.05 : 1.0
+                    }
+                }
+
                 PLItem {
                     /*
                      * implicit variables:



More information about the vlc-commits mailing list