[vlc-devel] [PATCH 9/9] qml: use constants for Video and Music track list sizes

jagannatharjun guptaprince8832 at gmail.com
Fri Jun 5 17:27:25 CEST 2020


From: Prince Gupta <guptaprince8832 at gmail.com>

---
 modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml | 4 ++--
 modules/gui/qt/medialibrary/qml/VideoListDisplay.qml      | 7 +++----
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml b/modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml
index a97aa2ad20..becaf4d7d1 100644
--- a/modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/MusicTrackListDisplay.qml
@@ -64,8 +64,8 @@ Widgets.KeyNavigableTableView {
             source: !rowModel ? VLCStyle.noArtCover : (rowModel.cover || VLCStyle.noArtCover)
             mipmap: true // this widget can down scale the source a lot, so for better visuals we use mipmap
 
-            Layout.preferredHeight: VLCStyle.heightAlbumCover_xsmall
-            Layout.preferredWidth: VLCStyle.heightAlbumCover_xsmall
+            Layout.preferredHeight: VLCStyle.trackListAlbumCover_heigth
+            Layout.preferredWidth: VLCStyle.trackListAlbumCover_width
 
             Widgets.PlayCover {
                 anchors.fill: parent
diff --git a/modules/gui/qt/medialibrary/qml/VideoListDisplay.qml b/modules/gui/qt/medialibrary/qml/VideoListDisplay.qml
index daf21dc725..84fccc576b 100644
--- a/modules/gui/qt/medialibrary/qml/VideoListDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/VideoListDisplay.qml
@@ -55,7 +55,7 @@ Widgets.KeyNavigableTableView {
                                                 : ( width < VLCStyle.colWidth(7) ) ? sortModelMedium : sortModelLarge
     section.property: "title_first_symbol"
 
-    rowHeight: VLCStyle.video_small_height + VLCStyle.margin_normal
+    rowHeight: VLCStyle.listAlbumCover_height + VLCStyle.margin_xxsmall * 2
 
     property bool isFocusOnContextButton: false
 
@@ -81,8 +81,8 @@ Widgets.KeyNavigableTableView {
                 active: model.type === "image"
                 sourceComponent: Widgets.RoundImage{
                     id: cover
-                    height: VLCStyle.video_small_height
-                    width: VLCStyle.video_small_width
+                    height: VLCStyle.listAlbumCover_height
+                    width: VLCStyle.listAlbumCover_width
                     source: !rowModel ? "" : rowModel[model.criteria]
 
                     Widgets.VideoQualityLabel {
@@ -154,7 +154,6 @@ Widgets.KeyNavigableTableView {
     }
 
     headerColor: VLCStyle.colors.bg
-    spacing: VLCStyle.margin_small
 
     onActionForSelection: medialib.addAndPlay(model.getIdsForIndexes( selection ))
 
-- 
2.25.1



More information about the vlc-devel mailing list