[vlc-devel] [PATCH 20/26] qml: add shadow and rounded edge in Video Expand Panel Cover
Prince Gupta
guptaprince8832 at gmail.com
Thu Dec 17 17:26:18 UTC 2020
---
.../medialibrary/qml/VideoInfoExpandPanel.qml | 26 +++++++++++++------
1 file changed, 18 insertions(+), 8 deletions(-)
diff --git a/modules/gui/qt/medialibrary/qml/VideoInfoExpandPanel.qml b/modules/gui/qt/medialibrary/qml/VideoInfoExpandPanel.qml
index 04d82e116b..a0688ed5f5 100644
--- a/modules/gui/qt/medialibrary/qml/VideoInfoExpandPanel.qml
+++ b/modules/gui/qt/medialibrary/qml/VideoInfoExpandPanel.qml
@@ -88,16 +88,26 @@ Widgets.NavigableFocusScope {
spacing: VLCStyle.margin_normal
- /* A bigger cover for the album */
- Image {
- id: expand_cover_id
- asynchronous: true
-
+ Item {
height: VLCStyle.gridCover_video_height
width: VLCStyle.gridCover_video_width
- source: model.thumbnail || VLCStyle.noArtCover
- sourceSize: Qt.size(width, height)
- fillMode: Image.PreserveAspectFit
+
+ /* A bigger cover for the album */
+ Widgets.RoundImage {
+ id: expand_cover_id
+
+ anchors.fill: parent
+ asynchronous: true
+ source: model.thumbnail || VLCStyle.noArtCover
+ sourceSize: Qt.size(width, height)
+ fillMode: Image.PreserveAspectFit
+ radius: VLCStyle.gridCover_radius
+ }
+
+ Widgets.ListCoverShadow {
+ anchors.fill: expand_cover_id
+ source: expand_cover_id
+ }
}
Widgets.NavigableRow {
--
2.25.1
More information about the vlc-devel
mailing list