[vlc-devel] [PATCH 11/26] qml: add shadows in Music Expand delegates's cover

Prince Gupta guptaprince8832 at gmail.com
Thu Dec 17 17:26:09 UTC 2020


---
 .../qml/MusicAlbumsGridExpandDelegate.qml     | 22 ++++++++++++++-----
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml b/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
index 729753eb2f..57fa2a4627 100644
--- a/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
@@ -76,14 +76,24 @@ Widgets.NavigableFocusScope {
                 spacing: VLCStyle.margin_normal
 
                 /* A bigger cover for the album */
-                Widgets.RoundImage {
-                    id: expand_cover_id
-                    asynchronous: true
+                Item {
                     height: VLCStyle.expandCover_music_height
                     width: VLCStyle.expandCover_music_width
-                    radius: VLCStyle.expandCover_music_radius
-                    source: model.cover || VLCStyle.noArtAlbum
-                    sourceSize: Qt.size(width, height)
+
+                    Widgets.RoundImage {
+                        id: expand_cover_id
+                        asynchronous: true
+                        height: VLCStyle.expandCover_music_height
+                        width: VLCStyle.expandCover_music_width
+                        radius: VLCStyle.expandCover_music_radius
+                        source: model.cover || VLCStyle.noArtAlbum
+                        sourceSize: Qt.size(width, height)
+                    }
+
+                    Widgets.ListCoverShadow {
+                        source: expand_cover_id
+                        anchors.fill: parent
+                    }
                 }
 
                 Widgets.NavigableRow {
-- 
2.25.1



More information about the vlc-devel mailing list