[vlc-devel] [PATCH 15/33] qml: update shadows of Player cover
Prince Gupta
guptaprince8832 at gmail.com
Wed Feb 3 10:56:31 UTC 2021
---
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)
}
}
--
2.25.1
More information about the vlc-devel
mailing list