[vlc-commits] qml: use constants for Video and Music track list sizes
Prince Gupta
git at videolan.org
Tue Jun 9 11:03:14 CEST 2020
vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Jun 5 21:15:25 2020 +0530| [c98b8e88046bd19ceeb5efa521cab454793b8bca] | committer: Pierre Lamot
qml: use constants for Video and Music track list sizes
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c98b8e88046bd19ceeb5efa521cab454793b8bca
---
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 ))
More information about the vlc-commits
mailing list