[vlc-devel] [PATCH] qml/MediaGroupList: Add shadow support

Benjamin Arnaud benjamin.arnaud at videolabs.io
Tue Apr 27 08:26:26 UTC 2021


---
 modules/gui/qt/medialibrary/qml/MediaGroupList.qml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/modules/gui/qt/medialibrary/qml/MediaGroupList.qml b/modules/gui/qt/medialibrary/qml/MediaGroupList.qml
index df030f1a89..a46fb81171 100644
--- a/modules/gui/qt/medialibrary/qml/MediaGroupList.qml
+++ b/modules/gui/qt/medialibrary/qml/MediaGroupList.qml
@@ -280,6 +280,9 @@ Widgets.NavigableFocusScope {
 
                 dragItem: root.dragItem
 
+                selectedUnderlay  : shadows.selected
+                unselectedUnderlay: shadows.unselected
+
                 //---------------------------------------------------------------------------------
                 // Events
 
@@ -326,6 +329,16 @@ Widgets.NavigableFocusScope {
 
                 onShowMediaInformation: gridView.switchExpandItem(index)
             }
+
+            //-------------------------------------------------------------------------------------
+            // Childs
+
+            Widgets.GridShadows {
+                id: shadows
+
+                coverWidth : VLCStyle.gridCover_video_width
+                coverHeight: VLCStyle.gridCover_video_height
+            }
         }
     }
 
-- 
2.25.1



More information about the vlc-devel mailing list