Commit c98b8e88 authored by Prince Gupta's avatar Prince Gupta Committed by Pierre Lamot

qml: use constants for Video and Music track list sizes

parent 0b3ed042
......@@ -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
......
......@@ -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 ))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment