[vlc-devel] [PATCH 14/21] qml: redo shadows for album picture in maxplayer

Prince Gupta guptaprince8832 at gmail.com
Fri Oct 23 15:21:08 CEST 2020


---
 modules/gui/qt/player/qml/Player.qml | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt/player/qml/Player.qml b/modules/gui/qt/player/qml/Player.qml
index e76acb162a..2aabb25864 100644
--- a/modules/gui/qt/player/qml/Player.qml
+++ b/modules/gui/qt/player/qml/Player.qml
@@ -300,15 +300,24 @@ Widgets.NavigableFocusScope {
                         anchors.centerIn: parent
                     }
 
+                    DropShadow {
+                        anchors.fill: cover
+                        source: cover
+                        horizontalOffset: 0
+                        verticalOffset: VLCStyle.dp(1, VLCStyle.scale)
+                        radius: VLCStyle.dp(3, VLCStyle.scale)
+                        samples: 1 + VLCStyle.dp(3, VLCStyle.scale) * 2
+                        color: Qt.rgba(0, 0, 0, .18)
+                    }
 
                     DropShadow {
                         anchors.fill: cover
                         source: cover
-                        horizontalOffset: 3
-                        verticalOffset: 10
-                        radius: 12
-                        samples: 17
-                        color: "black"
+                        horizontalOffset: 0
+                        verticalOffset: VLCStyle.dp(6, VLCStyle.scale)
+                        radius: VLCStyle.dp(14, VLCStyle.scale)
+                        samples: 1 + VLCStyle.dp(14, VLCStyle.scale) * 2
+                        color: Qt.rgba(0, 0, 0, .22)
                     }
                 }
 
-- 
2.25.1



More information about the vlc-devel mailing list