some tweaks to the library components

This commit is contained in:
Chris Cochrun 2023-04-18 06:42:56 -05:00
parent ecebddf557
commit 990edf3818
2 changed files with 12 additions and 7 deletions

View file

@ -17,6 +17,7 @@ ColumnLayout {
property string itemLabel
property string itemSubtitle
property string itemIcon
property string count
property var newItemFunction
property var deleteItemFunction
property ListView libraryList: libraryList
@ -66,11 +67,11 @@ ColumnLayout {
}
Controls.Label {
id: count
id: countLabel
anchors {left: libraryLabel.right
verticalCenter: libraryLabel.verticalCenter
leftMargin: 15}
text: libraryType == "song" ? innerModel.rowCount() : innerModel.count(innerModel)
text: count
color: Kirigami.Theme.disabledTextColor
}
@ -229,7 +230,7 @@ ColumnLayout {
clip: true
label: title
subtitle: {
if (selectedLibrary == "song")
if (libraryType == "song")
author
else if (fileValidation)
filePath;