[vlc-commits] qml: increase default radius of GridItems
Prince Gupta
git at videolan.org
Mon Jan 4 13:37:36 UTC 2021
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Dec 11 19:32:53 2020 +0530| [302e7c1460d7d45b9e52bd28df5f3bcace08ec57] | committer: Pierre Lamot
qml: increase default radius of GridItems
Signed-off-by: Pierre Lamot <pierre at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=302e7c1460d7d45b9e52bd28df5f3bcace08ec57
---
modules/gui/qt/style/VLCStyle.qml | 2 ++
modules/gui/qt/widgets/qml/GridItem.qml | 1 +
2 files changed, 3 insertions(+)
diff --git a/modules/gui/qt/style/VLCStyle.qml b/modules/gui/qt/style/VLCStyle.qml
index 6203a3d0bb..b33e970b1c 100644
--- a/modules/gui/qt/style/VLCStyle.qml
+++ b/modules/gui/qt/style/VLCStyle.qml
@@ -161,6 +161,8 @@ Item {
property int gridCover_video_width_large: dp(406, scale)
property int gridCover_video_height_large: ( gridCover_video_width_large * 10.0 ) / 16
+
+ property int gridCover_radius: dp(4, scale)
property int expandCover_music_height: dp(171, scale)
property int expandCover_music_width: dp(171, scale)
diff --git a/modules/gui/qt/widgets/qml/GridItem.qml b/modules/gui/qt/widgets/qml/GridItem.qml
index 5fa1c82ff9..1cff8f0dcb 100644
--- a/modules/gui/qt/widgets/qml/GridItem.qml
+++ b/modules/gui/qt/widgets/qml/GridItem.qml
@@ -312,6 +312,7 @@ FocusScope {
playCoverVisible: root._highlighted
onPlayIconClicked: root.playClicked()
clip: true
+ radius: VLCStyle.gridCover_radius
/* new indicator (triangle at top-left of cover)*/
Rectangle {
More information about the vlc-commits
mailing list