vlc | branch: master | Prince Gupta <guptaprince8...@gmail.com> | Mon Dec  7 
19:54:24 2020 +0530| [ba3b8ef1f0577697139d6dd63cc2fb3880575c1a] | committer: 
Pierre Lamot

qml: add shadows to TableColumns.titleDelegate

Signed-off-by: Pierre Lamot <pie...@videolabs.io>

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

 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 {

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to