Skip to content

Commit

Permalink
cleanup layout
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Mar 14, 2024
1 parent 8e2fdd5 commit b72e4f5
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/gui/qml/FolderDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -99,29 +99,24 @@ Pane {
text: folderDelegate.displayName
font.bold: true
font.pointSize: 15
elide: Text.ElideLeft
verticalAlignment: Text.AlignHCenter
elide: Text.ElideRight
}
}
Label {
Layout.fillWidth: true
text: folderDelegate.descriptionText
elide: Text.ElideRight
verticalAlignment: Text.AlignHCenter
}
// we will either display quota or overallText
Label {
Layout.fillWidth: true
text: folderDelegate.quota
elide: Text.ElideRight
verticalAlignment: Text.AlignHCenter
visible: folderDelegate.quota && !folderDelegate.overallText
}

Item {
// ensure the progress bar always consumes its space
Layout.fillWidth: true
Layout.preferredHeight: 10
Layout.fillWidth: true
ProgressBar {
anchors.fill: parent
value: folderDelegate.progress
Expand All @@ -130,13 +125,11 @@ Pane {
}

Label {
Layout.fillWidth: true
text: folderDelegate.overallText
elide: Text.ElideLeft
elide: Text.ElideMiddle
}

Label {
Layout.fillWidth: true
text: folderDelegate.itemText
elide: Text.ElideMiddle
// only display the item text if we don't have errors
Expand Down

0 comments on commit b72e4f5

Please sign in to comment.