[vlc-devel] [PATCH 10/26] qml: add rounded edge in MusicInfoExpandDelegate's cover

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


---
 .../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 97879ab8db..8ee198f330 100644
--- a/modules/gui/qt/style/VLCStyle.qml
+++ b/modules/gui/qt/style/VLCStyle.qml
@@ -163,6 +163,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)
 
-- 
2.25.1



More information about the vlc-devel mailing list