[vlc-commits] [Git][videolan/vlc][master] qml: fix wrong sizing in PlaylistMedia
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Thu Jul 27 15:38:38 UTC 2023
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
0cf4d52d by Fatih Uzunoglu at 2023-07-27T15:18:46+00:00
qml: fix wrong sizing in PlaylistMedia
- - - - -
2 changed files:
- modules/gui/qt/medialibrary/qml/PlaylistMedia.qml
- modules/gui/qt/medialibrary/qml/PlaylistMediaDisplay.qml
Changes:
=====================================
modules/gui/qt/medialibrary/qml/PlaylistMedia.qml
=====================================
@@ -37,6 +37,8 @@ MainInterface.MainTableView {
readonly property int columns: VLCStyle.gridColumnsForWidth(root.availableRowWidth)
+ property bool isMusic
+
//---------------------------------------------------------------------------------------------
// Private
@@ -215,9 +217,12 @@ MainInterface.MainTableView {
Widgets.TableColumns {
id: table
- titleCover_width : VLCStyle.listAlbumCover_width
- titleCover_height: VLCStyle.listAlbumCover_height
- titleCover_radius: VLCStyle.listAlbumCover_radius
+ titleCover_width: isMusic ? VLCStyle.trackListAlbumCover_width
+ : VLCStyle.listAlbumCover_width
+ titleCover_height: isMusic ? VLCStyle.trackListAlbumCover_heigth
+ : VLCStyle.listAlbumCover_height
+ titleCover_radius: isMusic ? VLCStyle.trackListAlbumCover_radius
+ : VLCStyle.listAlbumCover_radius
showTitleText: (root.sortModel === root._modelSmall)
showCriterias: showTitleText
=====================================
modules/gui/qt/medialibrary/qml/PlaylistMediaDisplay.qml
=====================================
@@ -158,6 +158,8 @@ FocusScope {
dragItem: root.dragItem
+ isMusic: root.isMusic
+
header: Widgets.SubtitleLabel {
id: label
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0cf4d52d30584ef9104f74ef3ea188667bb2e18f
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0cf4d52d30584ef9104f74ef3ea188667bb2e18f
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list