[vlc-commits] qml: add shadows in Music Expand delegates's cover
Prince Gupta
git at videolan.org
Mon Jan 4 13:37:41 UTC 2021
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Dec 11 20:01:14 2020 +0530| [6f492c7b80756610ddd162e0a1a54146c2b4942a] | committer: Pierre Lamot
qml: add shadows in Music Expand delegates's cover
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6f492c7b80756610ddd162e0a1a54146c2b4942a
---
.../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 {
More information about the vlc-commits
mailing list