[vlc-commits] qml: add top margin on subtitle label of GridItem

Prince Gupta git at videolan.org
Mon Jan 4 13:37:35 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Dec  4 17:56:41 2020 +0530| [908c7c0a3cb4e8c22f345f12e9a91ae17fe21a26] | committer: Pierre Lamot

qml: add top margin on subtitle label of GridItem

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=908c7c0a3cb4e8c22f345f12e9a91ae17fe21a26
---

 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 ff630430c5..6203a3d0bb 100644
--- a/modules/gui/qt/style/VLCStyle.qml
+++ b/modules/gui/qt/style/VLCStyle.qml
@@ -169,13 +169,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 gridItem_video_width_large: VLCStyle.gridCover_video_width_large
     property int gridItem_video_height_large: VLCStyle.gridCover_video_height_large + VLCStyle.margin_xxsmall + VLCStyle.fontHeight_large +
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



More information about the vlc-commits mailing list