[vlc-commits] [Git][videolan/vlc][master] qml: fix network thumbnail shadows

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Fri Aug 26 18:20:37 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
e0a1248f by Prince Gupta at 2022-08-26T18:09:27+00:00
qml: fix network thumbnail shadows

- - - - -


1 changed file:

- modules/gui/qt/network/qml/NetworkThumbnailItem.qml


Changes:

=====================================
modules/gui/qt/network/qml/NetworkThumbnailItem.qml
=====================================
@@ -44,10 +44,30 @@ Item {
 
     readonly property bool _showCustomCover: (!artworkSource) || (artwork.status != Image.Ready)
 
+    readonly property var _shadowRects: [
+        {
+            "x": background.x,
+            "y": background.y,
+            "width": background.width,
+            "height": background.height
+        },
+        {
+            "x": artwork.x,
+            "y": artwork.y,
+            "width": artwork.paintedWidth,
+            "height": artwork.paintedHeight
+        }
+    ]
+
+    readonly property var _shadowRect: _shadowRects[_showCustomCover ? 0 : 1]
+
     signal playClicked(int index)
 
     Widgets.ListCoverShadow {
-        anchors.fill: !item._showCustomCover ? artwork : background
+        x: _shadowRect.x
+        y: _shadowRect.y
+        width: _shadowRect.width
+        height: _shadowRect.height
     }
 
     Rectangle {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e0a1248f81c46f9125f86833e61ebc9112317075

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e0a1248f81c46f9125f86833e61ebc9112317075
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list