[vlc-commits] qml: add rounded edge in MusicInfoExpandDelegate's cover

Prince Gupta git at videolan.org
Mon Jan 4 13:37:40 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Dec 11 19:47:05 2020 +0530| [c4e3088ce4fca3377be796be3b73f436b9e473c6] | committer: Pierre Lamot

qml: add rounded edge in MusicInfoExpandDelegate's cover

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

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

 modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml | 3 ++-
 modules/gui/qt/style/VLCStyle.qml                                 | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml b/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
index e70ba6d1f6..729753eb2f 100644
--- a/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicAlbumsGridExpandDelegate.qml
@@ -76,11 +76,12 @@ Widgets.NavigableFocusScope {
                 spacing: VLCStyle.margin_normal
 
                 /* A bigger cover for the album */
-                Image {
+                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)
                 }
diff --git a/modules/gui/qt/style/VLCStyle.qml b/modules/gui/qt/style/VLCStyle.qml
index b33e970b1c..56a8020d8b 100644
--- a/modules/gui/qt/style/VLCStyle.qml
+++ b/modules/gui/qt/style/VLCStyle.qml
@@ -166,6 +166,7 @@ Item {
 
     property int expandCover_music_height: dp(171, scale)
     property int expandCover_music_width: dp(171, scale)
+    property int expandCover_music_radius: gridCover_radius
 
     property int artistGridCover_radius: dp(90, scale)
 



More information about the vlc-commits mailing list