[vlc-devel] [PATCH 13/28] qml: add separator for the top part of the first element in playlist listview

Fatih Uzunoglu fuzun54 at outlook.com
Tue Jul 21 19:28:43 CEST 2020


---
 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:
-- 
2.25.1



More information about the vlc-devel mailing list