Skip to content

Commit

Permalink
qml: do not align playlist delegate texts to the image
Browse files Browse the repository at this point in the history
Commit 21b6444 added spacing here, even though the texts
should be aligned to the image. This broke layouting.

Now that we deviate from the design by reducing the spacing
between items, we can properly use spacing here without
aligning the texts to the image.
  • Loading branch information
fuzun authored and fkuehne committed Oct 27, 2024
1 parent a6f78e7 commit 1271d51
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/gui/qt/playlist/qml/PlaylistDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -200,29 +200,25 @@ T.Control {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.leftMargin: VLCStyle.margin_large
spacing: VLCStyle.margin_xsmall
spacing: VLCStyle.margin_xxxsmall

Widgets.ListLabel {
id: textInfo

Layout.fillHeight: true
Layout.fillWidth: true

font.weight: model.isCurrent ? Font.Bold : Font.DemiBold
text: model.title
color: theme.fg.primary
verticalAlignment: Text.AlignTop
}

Widgets.ListSubtitleLabel {
id: textArtist

Layout.fillHeight: true
Layout.fillWidth: true

text: model.artist || qsTr("Unknown Artist")
color: theme.fg.primary
verticalAlignment: Text.AlignBottom
}
}

Expand Down

0 comments on commit 1271d51

Please sign in to comment.