[vlc-devel] [PATCH 05/26] qml: add top margin on subtitle label of GridItem

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


---
 modules/gui/qt/style/VLCStyle.qml       | 6 +++---
 modules/gui/qt/widgets/qml/GridItem.qml | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/style/VLCStyle.qml b/modules/gui/qt/style/VLCStyle.qml
index 376fec87ac..afb11a182f 100644
--- a/modules/gui/qt/style/VLCStyle.qml
+++ b/modules/gui/qt/style/VLCStyle.qml
@@ -166,13 +166,13 @@ Item {
 
     //GridItem
     property int gridItem_network_width: VLCStyle.gridCover_network_width
-    property int gridItem_network_height: VLCStyle.gridCover_network_height + VLCStyle.margin_xsmall + VLCStyle.fontHeight_normal + VLCStyle.fontHeight_small
+    property int gridItem_network_height: VLCStyle.gridCover_network_height + VLCStyle.margin_xsmall + VLCStyle.fontHeight_normal + VLCStyle.margin_xsmall + VLCStyle.fontHeight_normal
 
     property int gridItem_music_width: VLCStyle.gridCover_music_width
-    property int gridItem_music_height: VLCStyle.gridCover_music_height + VLCStyle.margin_xsmall + VLCStyle.fontHeight_normal + VLCStyle.fontHeight_small
+    property int gridItem_music_height: VLCStyle.gridCover_music_height + VLCStyle.margin_xsmall + VLCStyle.fontHeight_normal + VLCStyle.margin_xsmall + VLCStyle.fontHeight_small
 
     property int gridItem_video_width: VLCStyle.gridCover_video_width
-    property int gridItem_video_height: VLCStyle.gridCover_video_height + VLCStyle.margin_xxsmall + VLCStyle.fontHeight_normal + VLCStyle.fontHeight_small
+    property int gridItem_video_height: VLCStyle.gridCover_video_height + VLCStyle.margin_xxsmall + VLCStyle.fontHeight_normal + VLCStyle.fontHeight_normal
 
     property int column_width: dp(114, scale)
     property int column_margin_width: dp(32, scale)
diff --git a/modules/gui/qt/widgets/qml/GridItem.qml b/modules/gui/qt/widgets/qml/GridItem.qml
index 8db96a4a21..5fa1c82ff9 100644
--- a/modules/gui/qt/widgets/qml/GridItem.qml
+++ b/modules/gui/qt/widgets/qml/GridItem.qml
@@ -356,6 +356,7 @@ FocusScope {
                     visible: text !== ""
                     text: root.subtitle
                     width: pictureWidth
+                    topPadding: VLCStyle.margin_xsmall
                     color: selectionRect.visible
                            ? VLCStyle.colors.setColorAlpha(VLCStyle.colors.bgHoverText, .6)
                            : VLCStyle.colors.menuCaption
-- 
2.25.1



More information about the vlc-devel mailing list