[vlc-commits] qml: add top padding to table type views used in MainView

Prince Gupta git at videolan.org
Thu Dec 17 14:57:12 UTC 2020


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Dec  4 19:18:52 2020 +0530| [9e508386f4950160a4f60762bead16b4d39f6422] | committer: Pierre Lamot

qml: add top padding to table type views used in MainView

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

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

 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 2ca93cf51e..b98e851583 100644
--- a/modules/gui/qt/medialibrary/qml/MusicAlbums.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicAlbums.qml
@@ -211,6 +211,7 @@ Widgets.NavigableFocusScope {
             header: root.header
             dragItem: albumDragItem
             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 0048c09281..d2a108c16c 100644
--- a/modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicArtistsDisplay.qml
@@ -205,6 +205,7 @@ Widgets.PageLoader {
                     navigationParent: root
                     dragItem: artistsDragItem
                     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 0ade8728a2..75e73e5fdd 100644
--- a/modules/gui/qt/medialibrary/qml/MusicGenres.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicGenres.qml
@@ -263,6 +263,7 @@ Widgets.NavigableFocusScope {
             navigationParent: root
             dragItem: genreDragItem
             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 7f5bea3fb2..469c4af954 100644
--- a/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicTracksDisplay.qml
@@ -56,6 +56,7 @@ Widgets.NavigableFocusScope {
         visible: model.count > 0
         focus: visible
         dragItem: trackDragItem
+        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 b9a3cfe55e..6718e1b5dc 100644
--- a/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/VideoDisplay.qml
@@ -177,6 +177,7 @@ Widgets.NavigableFocusScope {
             model: videoModel
             dragItem: videoDragItem
             navigationParent: root
+            headerTopPadding: VLCStyle.margin_normal
 
             selectionDelegateModel: selectionModel
 



More information about the vlc-commits mailing list