Visual alignment of elements and whitespace corrections

This commit is contained in:
Bart De Vries 2021-05-08 19:07:00 +02:00
parent a7bac204ad
commit 33b3685413
3 changed files with 7 additions and 6 deletions

View File

@ -55,7 +55,7 @@ Kirigami.ScrollablePage {
opacity: 1
}
Controls.Label {
text: i18n("Error code: ") + error.code + " · " + error.message
text: i18n("Error code: ") + error.code + (error.message ? " · " + error.message : "")
Layout.fillWidth: true
elide: Text.ElideRight
font: Kirigami.Theme.smallFont

View File

@ -95,7 +95,7 @@ Kirigami.SwipeListItem {
Layout.fillWidth: true
elide: Text.ElideRight
font: Kirigami.Theme.smallFont
opacity: 0.7
opacity: entry.read ? 0.4 : 0.7
visible: !downloadProgress.visible
}
}
@ -116,19 +116,20 @@ Kirigami.SwipeListItem {
text: audio.timeString(entry.enclosure.playPosition)
elide: Text.ElideRight
font: Kirigami.Theme.smallFont
opacity: 0.7
opacity: entry.read ? 0.4 : 0.7
}
Controls.ProgressBar {
from: 0
to: entry.enclosure.duration
value: entry.enclosure.playPosition / 1000
Layout.fillWidth: true
opacity: entry.read ? 0.6 : 1
}
Controls.Label {
text: audio.timeString(entry.enclosure.duration * 1000)
elide: Text.ElideRight
font: Kirigami.Theme.smallFont
opacity: 0.7
opacity: entry.read ? 0.4 : 0.7
}
}
}