[vlc-commits] [Git][videolan/vlc][master] 4 commits: qml: make it possible to adjust cover size in `VideoListDisplay`

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sat Apr 4 18:07:56 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
7200607f by Fatih Uzunoglu at 2026-04-04T19:47:36+02:00
qml: make it possible to adjust cover size in `VideoListDisplay`

- - - - -
1dfa6f7c by Fatih Uzunoglu at 2026-04-04T19:47:36+02:00
qml: make it possible to adjust cover size in `VideoAll`

- - - - -
d829e5ff by Fatih Uzunoglu at 2026-04-04T19:47:36+02:00
qml: match cover sizes of list sub-views in `HomePage`

This fixes un-matched padding between sub-views
in the home page.

Note that the default value is `VLCStyle.listAlbumCover_X`
instead of `VLCStyle.trackListAlbumCover_X`, this makes
the "Favorites" and "New Media" list views now have
bigger thumbnail, rather than making the "Continue
Watching" list view have smaller thumbnail.

- - - - -
32d2be35 by Fatih Uzunoglu at 2026-04-04T19:47:36+02:00
qml: fix column sizing in `VideoListDisplay.qml`

- - - - -


3 changed files:

- modules/gui/qt/medialibrary/qml/HomePage.qml
- modules/gui/qt/medialibrary/qml/VideoAll.qml
- modules/gui/qt/medialibrary/qml/VideoListDisplay.qml


Changes:

=====================================
modules/gui/qt/medialibrary/qml/HomePage.qml
=====================================
@@ -43,6 +43,10 @@ T.Page {
 
     readonly property bool isSearchable: true
 
+    property real listCoverHeight: VLCStyle.listAlbumCover_height
+    property real listCoverWidth: VLCStyle.listAlbumCover_width
+    property real listCoverRadius: VLCStyle.listAlbumCover_radius
+
     readonly property ColorContext colorContext: ColorContext {
         id: theme
         colorSet: ColorContext.View
@@ -232,6 +236,10 @@ T.Page {
                 //        is true and items provided by the model change (#29084).
                 reuseItems: !MainCtx.gridView
 
+                listCoverWidth: root.listCoverWidth
+                listCoverHeight: root.listCoverHeight
+                listCoverRadius: root.listCoverRadius
+
                 Navigation.parentItem: mediaRows
                 Navigation.downAction: function() {
                     if (favoritesRow.visible)
@@ -323,6 +331,10 @@ T.Page {
                 //        is true and items provided by the model change (#29084).
                 reuseItems: !MainCtx.gridView
 
+                listCoverWidth: root.listCoverWidth
+                listCoverHeight: root.listCoverHeight
+                listCoverRadius: root.listCoverRadius
+
                 Navigation.parentItem: mediaRows
                 Navigation.upAction: function() {
                     if (continueWatchingRow.visible)
@@ -400,6 +412,10 @@ T.Page {
                 //        is true and items provided by the model change (#29084).
                 reuseItems: !MainCtx.gridView
 
+                listCoverWidth: root.listCoverWidth
+                listCoverHeight: root.listCoverHeight
+                listCoverRadius: root.listCoverRadius
+
                 Navigation.parentItem: mediaRows
                 Navigation.upAction: function() {
                     if (favoritesRow.visible)


=====================================
modules/gui/qt/medialibrary/qml/VideoAll.qml
=====================================
@@ -71,6 +71,10 @@ MainViewLoader {
 
     property bool showGroupCountColumn: false
 
+    property real listCoverHeight: VLCStyle.listAlbumCover_height
+    property real listCoverWidth: VLCStyle.listAlbumCover_width
+    property real listCoverRadius: VLCStyle.listAlbumCover_radius
+
     // Aliases
 
     property alias dragItem: dragItem
@@ -240,6 +244,10 @@ MainViewLoader {
             coverLabels: root.listLabels
 
             showGroupCountColumn: root.showGroupCountColumn
+
+            coverWidth: root.listCoverWidth
+            coverHeight: root.listCoverHeight
+            coverRadius: root.listCoverRadius
         }
     }
 


=====================================
modules/gui/qt/medialibrary/qml/VideoListDisplay.qml
=====================================
@@ -40,6 +40,10 @@ Widgets.TableViewExt {
 
     property bool showGroupCountColumn: false
 
+    property real coverHeight: VLCStyle.listAlbumCover_height
+    property real coverWidth: VLCStyle.listAlbumCover_width
+    property real coverRadius: VLCStyle.listAlbumCover_radius
+
     //---------------------------------------------------------------------------------------------
     // Private
 
@@ -93,7 +97,7 @@ Widgets.TableViewExt {
         }
 
         medium.push({
-            size: 0.5,
+            size: showGroupCountColumn ? 0.5 : 1,
 
             model: ({
                 criteria: "duration",
@@ -131,9 +135,9 @@ Widgets.TableViewExt {
 
         criteriaCover: "thumbnail"
 
-        titleCover_height: VLCStyle.listAlbumCover_height
-        titleCover_width: VLCStyle.listAlbumCover_width
-        titleCover_radius: VLCStyle.listAlbumCover_radius
+        titleCover_height: listView_id.coverHeight
+        titleCover_width: listView_id.coverWidth
+        titleCover_radius: listView_id.coverRadius
 
         titlecoverLabels: listView_id.coverLabels
     }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/37c6fecd12d04160a41aa06b1213c09418a67eb7...32d2be351e6808ad444ab5158a48da56158f0c2a

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/37c6fecd12d04160a41aa06b1213c09418a67eb7...32d2be351e6808ad444ab5158a48da56158f0c2a
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list