[vlc-commits] qml: redo shadows for album picture in maxplayer
Prince Gupta
git at videolan.org
Fri Nov 6 16:00:54 CET 2020
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Mon Oct 19 20:52:00 2020 +0530| [f9eed8078c50f1ec232432477dc954f0976ecb6a] | committer: Pierre Lamot
qml: redo shadows for album picture in maxplayer
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f9eed8078c50f1ec232432477dc954f0976ecb6a
---
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)
}
}
More information about the vlc-commits
mailing list