[vlc-devel] [PATCH 03/28] qml: add shadow effect to playlist list item's cover image / artwork
Fatih Uzunoglu
fuzun54 at outlook.com
Tue Jul 21 19:28:33 CEST 2020
---
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
--
2.25.1
More information about the vlc-devel
mailing list