fixing LibraryItem's subtitles

This commit is contained in:
Chris Cochrun 2024-09-24 14:38:52 -05:00
parent c3a61d51cf
commit 10d1440f5d

View file

@ -251,15 +251,23 @@ ColumnLayout {
implicitWidth: libraryList.width
height: selectedLibrary == libraryType ? 50 : 0
text: title
/* subtitle: { */
/* if (libraryType == "song") */
/* author */
/* else if (fileValidation) */
/* filePath; */
/* else */
/* "file is missing" */
/* } */
Controls.Label {
anchors.top: parent.verticalCenter
anchors.topMargin: Kirigami.Units.gridUnit / 2
anchors.left: parent.left
anchors.leftMargin: Kirigami.Units.gridUnit * 1.7
font.pointSize: 9
text: {
if (libraryType == "song")
author
else if (fileValidation)
filePath.substr(7);
else
"file is missing";
}
elide: Text.ElideRight
}
icon.source: itemIcon
icon.width: Kirigami.Units.gridUnit