[vlc-commits] qml: update shadows of Player cover

Prince Gupta git at videolan.org
Mon Feb 8 10:00:06 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Mon Jan 11 17:24:44 2021 +0530| [d9f3eac2ec323547098ee88258db1c505d876be2] | committer: Pierre Lamot

qml: update shadows of Player cover

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

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

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

diff --git a/modules/gui/qt/player/qml/Player.qml b/modules/gui/qt/player/qml/Player.qml
index e370f36047..41942ed193 100644
--- a/modules/gui/qt/player/qml/Player.qml
+++ b/modules/gui/qt/player/qml/Player.qml
@@ -353,24 +353,13 @@ Widgets.NavigableFocusScope {
                         anchors.fill: parent
                     }
 
-                    DropShadow {
+                    Widgets.CoverShadow {
                         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: 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)
+                        primaryVerticalOffset: VLCStyle.dp(24)
+                        primaryRadius: VLCStyle.dp(54)
+                        secondaryVerticalOffset: VLCStyle.dp(5)
+                        secondaryRadius: VLCStyle.dp(14)
                     }
                 }
 



More information about the vlc-commits mailing list