[vlc-commits] qml: add shadow and rounded edge in Video Expand Panel Cover
Prince Gupta
git at videolan.org
Mon Jan 4 13:37:50 UTC 2021
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Mon Dec 14 23:44:51 2020 +0530| [56c0b5fcf140af223cceeb4d31fe3f564bbbd486] | committer: Pierre Lamot
qml: add shadow and rounded edge in Video Expand Panel Cover
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=56c0b5fcf140af223cceeb4d31fe3f564bbbd486
---
.../qt/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 {
More information about the vlc-commits
mailing list