[vlc-devel] [PATCH 06/26] qml: increase default radius of GridItems

Prince Gupta guptaprince8832 at gmail.com
Thu Dec 17 17:26:04 UTC 2020


---
 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 afb11a182f..97879ab8db 100644
--- a/modules/gui/qt/style/VLCStyle.qml
+++ b/modules/gui/qt/style/VLCStyle.qml
@@ -159,6 +159,8 @@ Item {
     property int gridCover_video_height: ( gridCover_video_width * 10.0 ) / 16
     property int gridCover_video_border: dp(3, scale)
 
+    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 {
-- 
2.25.1



More information about the vlc-devel mailing list