[vlc-devel] [PATCH 13/30] qml: add top padding to table type views used in MainView

Prince Gupta guptaprince8832 at gmail.com
Mon Dec 14 14:27:51 CET 2020


---
 modules/gui/qt/medialibrary/qml/MusicAlbums.qml         | 1 +
 modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml | 1 +
 modules/gui/qt/medialibrary/qml/MusicGenres.qml         | 1 +
 modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml  | 1 +
 modules/gui/qt/medialibrary/qml/VideoDisplay.qml        | 1 +
 5 files changed, 5 insertions(+)

diff --git a/modules/gui/qt/medialibrary/qml/MusicAlbums.qml b/modules/gui/qt/medialibrary/qml/MusicAlbums.qml
index 5dfa325629..92d5b2d514 100644
--- a/modules/gui/qt/medialibrary/qml/MusicAlbums.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicAlbums.qml
@@ -188,6 +188,7 @@ Widgets.NavigableFocusScope {
             section.property: "title_first_symbol"
             header: root.header
             rowHeight: VLCStyle.tableCoverRow_height
+            headerTopPadding: VLCStyle.margin_normal
 
             sortModel:  [
                 { isPrimary: true, criteria: "title", width: VLCStyle.colWidth(2), text: i18n.qtr("Title"), headerDelegate: tableColumns.titleHeaderDelegate, colDelegate: tableColumns.titleDelegate },
diff --git a/modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml b/modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml
index fb7ccd0083..8e28841160 100644
--- a/modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml
@@ -182,6 +182,7 @@ Widgets.PageLoader {
                     headerColor: VLCStyle.colors.bg
                     navigationParent: root
                     rowHeight: VLCStyle.tableCoverRow_height
+                    headerTopPadding: VLCStyle.margin_normal
 
                     onActionForSelection: {
                         if (selection.length > 1) {
diff --git a/modules/gui/qt/medialibrary/qml/MusicGenres.qml b/modules/gui/qt/medialibrary/qml/MusicGenres.qml
index b44caf11da..aba70bcf0a 100644
--- a/modules/gui/qt/medialibrary/qml/MusicGenres.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicGenres.qml
@@ -240,6 +240,7 @@ Widgets.NavigableFocusScope {
             onActionForSelection: _actionAtIndex(selection)
             navigationParent: root
             rowHeight: VLCStyle.tableCoverRow_height
+            headerTopPadding: VLCStyle.margin_normal
 
             sortModel:  [
                 { isPrimary: true, criteria: "cover", width: VLCStyle.listAlbumCover_width, headerDelegate: thumbnailHeader, colDelegate: thumbnailColumn },
diff --git a/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml b/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
index 6a0ba1bfb3..a62e2b794f 100644
--- a/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
@@ -33,6 +33,7 @@ Widgets.NavigableFocusScope {
         anchors.fill: parent
         visible: model.count > 0
         focus: visible
+        headerTopPadding: VLCStyle.margin_normal
         navigationParent: root
         navigationCancel: function() {
             if (tracklistdisplay_id.currentIndex <= 0)
diff --git a/modules/gui/qt/medialibrary/qml/VideoDisplay.qml b/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
index 0722ddd2d8..4e697d96ba 100644
--- a/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
@@ -175,6 +175,7 @@ Widgets.NavigableFocusScope {
             width: view.width
             model: videoModel
             navigationParent: root
+            headerTopPadding: VLCStyle.margin_normal
 
             selectionDelegateModel: selectionModel
 
-- 
2.25.1



More information about the vlc-devel mailing list