Show download progress also on entry page

So far, there was no progress feedback at all when starting a download on
the entry page.
Use the toolbar background as progress indicator while a download
is running.
This commit is contained in:
Elias Probst 2024-05-25 05:19:56 +02:00
parent 2f5d16d38a
commit 3c25887111
No known key found for this signature in database
GPG Key ID: 82C512826511BADB
1 changed files with 4 additions and 1 deletions

View File

@ -106,7 +106,10 @@ Kirigami.ScrollablePage {
contentItem: Kirigami.ActionToolBar { contentItem: Kirigami.ActionToolBar {
alignment: Qt.AlignLeft alignment: Qt.AlignLeft
background: Item {} background: Rectangle {
color: Kirigami.Theme.highlightColor
width: entry.enclosure && (entry.enclosure.status === Enclosure.Downloading ) ? (parent.width*entry.enclosure.downloadProgress) : 0
}
actions: [ actions: [
Kirigami.Action { Kirigami.Action {