Skip to content

Commit

Permalink
improve file delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
zhulik committed Jul 2, 2023
1 parent 2cd3654 commit edacedc
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions resources/qml/DirectoryView/FileDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ItemDelegate {

RowLayout {
anchors.fill: parent
anchors.margins: 5
spacing: 5

MDI.Icon {
name: fileIcon
Expand All @@ -28,20 +30,25 @@ ItemDelegate {
elide: Text.ElideMiddle
}

RowLayout {

Label {
text: fileSizeString
Layout.fillWidth: parent
color: Material.accent
font.pointSize: 8
}
}

Label {
text: fileMime
elide: Text.ElideMiddle
color: Material.accent
Layout.alignment: Qt.AlignVCenter
font.pointSize: 8
Label {
text: fileMime
elide: Text.ElideMiddle
color: Material.accent
Layout.alignment: Qt.AlignVCenter
font.pointSize: 8
}
}
}


}
}

0 comments on commit edacedc

Please sign in to comment.