From 3c25887111dae907f4e9a5745a1020ee86bf1ea8 Mon Sep 17 00:00:00 2001 From: Elias Probst Date: Sat, 25 May 2024 05:19:56 +0200 Subject: [PATCH] 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. --- src/qml/EntryPage.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/qml/EntryPage.qml b/src/qml/EntryPage.qml index fba682af..11ec2c3f 100644 --- a/src/qml/EntryPage.qml +++ b/src/qml/EntryPage.qml @@ -106,7 +106,10 @@ Kirigami.ScrollablePage { contentItem: Kirigami.ActionToolBar { 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: [ Kirigami.Action {