[vlc-commits] qml: add shadow effect to playlist list item's cover image / artwork

Fatih Uzunoglu git at videolan.org
Fri Jul 24 11:45:35 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Jun 26 23:42:08 2020 +0300| [a640c8606f847c03644da6c3f317e7caca97be62] | committer: Pierre Lamot

qml: add shadow effect to playlist list item's cover image / artwork

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

 modules/gui/qt/playlist/qml/PLItem.qml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/modules/gui/qt/playlist/qml/PLItem.qml b/modules/gui/qt/playlist/qml/PLItem.qml
index bf2ecc903d..540bfc5d24 100644
--- a/modules/gui/qt/playlist/qml/PLItem.qml
+++ b/modules/gui/qt/playlist/qml/PLItem.qml
@@ -19,6 +19,7 @@
 import QtQuick 2.11
 import QtQuick.Controls 2.4
 import QtQuick.Layouts 1.3
+import QtGraphicalEffects 1.0
 
 import org.videolan.vlc 0.1
 
@@ -123,6 +124,17 @@ Rectangle {
                 Layout.preferredWidth: VLCStyle.icon_normal
                 Layout.leftMargin: VLCStyle.margin_xsmall
 
+                DropShadow {
+                    id: effect
+                    anchors.fill: artwork
+                    source: artwork
+                    radius: 8
+                    samples: 17
+                    color: VLCStyle.colors.glowColorBanner
+                    visible: artwork.visible
+                    spread: 0.1
+                }
+
                 Image {
                     id: artwork
                     anchors.fill: parent



More information about the vlc-commits mailing list