[vlc-devel] [PATCH 8/9] qml: use SubtitleLabel for header of Videos Grid view and align headers texts with content

Prince Gupta guptaprince8832 at gmail.com
Mon Aug 10 15:20:29 CEST 2020


---
 modules/gui/qt/medialibrary/qml/VideoDisplay.qml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/medialibrary/qml/VideoDisplay.qml b/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
index f15f63fd47..867897b719 100644
--- a/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
@@ -145,10 +145,12 @@ Widgets.NavigableFocusScope {
             delegateModel: selectionModel
             model: videoModel
 
-            headerDelegate: Widgets.LabelSeparator {
-                id: videosSeparator
-                width: videosGV.width
+            headerDelegate: Widgets.SubtitleLabel {
                 text: i18n.qtr("Videos")
+                leftPadding: videosGV.rowX
+                topPadding: VLCStyle.margin_large
+                bottomPadding: VLCStyle.margin_normal
+                width: root.width
             }
 
             delegate: VideoGridItem {
-- 
2.25.1



More information about the vlc-devel mailing list