[vlc-devel] [PATCH 23/30] qml: add shadows to TableColumns.titleDelegate

Prince Gupta guptaprince8832 at gmail.com
Mon Dec 14 14:28:01 CET 2020


---
 modules/gui/qt/widgets/qml/TableColumns.qml | 28 ++++++++++++++-------
 1 file changed, 19 insertions(+), 9 deletions(-)

diff --git a/modules/gui/qt/widgets/qml/TableColumns.qml b/modules/gui/qt/widgets/qml/TableColumns.qml
index d9b11ec70e..b2e943ab83 100644
--- a/modules/gui/qt/widgets/qml/TableColumns.qml
+++ b/modules/gui/qt/widgets/qml/TableColumns.qml
@@ -44,17 +44,27 @@ Item {
         anchors.fill: parent
         spacing: VLCStyle.margin_normal
 
-        Widgets.MediaCover {
-            source: ( !rowModel || root.showTitleText ? rowModel.cover : rowModel[model.criteria]) || VLCStyle.noArtCover
-            mipmap: true // this widget can down scale the source a lot, so for better visuals we use mipmap
-            playCoverVisible: currentlyFocused || containsMouse
-            playIconSize: VLCStyle.play_cover_small
-            onPlayIconClicked: medialib.addAndPlay( rowModel.id )
-            radius: root.titleCover_radius
-            labels: root.titlecoverLabels(rowModel)
-
+        Item {
             Layout.preferredHeight: root.titleCover_height
             Layout.preferredWidth: root.titleCover_width
+
+            ListCoverShadow {
+                source: cover
+                anchors.fill: cover
+            }
+
+            Widgets.MediaCover {
+                id: cover
+
+                anchors.fill: parent
+                source: ( !rowModel || root.showTitleText ? rowModel.cover : rowModel[model.criteria]) || VLCStyle.noArtCover
+                mipmap: true // this widget can down scale the source a lot, so for better visuals we use mipmap
+                playCoverVisible: currentlyFocused || containsMouse
+                playIconSize: VLCStyle.play_cover_small
+                onPlayIconClicked: medialib.addAndPlay( rowModel.id )
+                radius: root.titleCover_radius
+                labels: root.titlecoverLabels(rowModel)
+            }
         }
 
         Widgets.ListLabel {
-- 
2.25.1



More information about the vlc-devel mailing list