Skip to content

Commit 099189a

Browse files
committed
feat(webview): add loading progress bar
1 parent 33ca61c commit 099189a

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

contents/ui/WebView.qml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,31 @@ Item {
571571
}
572572
}
573573

574+
PlasmaComponents3.ProgressBar {
575+
id: loadingProgressBar
576+
577+
z: 10
578+
visible: webview.loading && webview.loadProgress < 100
579+
height: visible ? 3 : 0
580+
581+
anchors {
582+
top: parent.top
583+
left: parent.left
584+
right: parent.right
585+
}
586+
587+
from: 0
588+
to: 100
589+
value: webview.loadProgress
590+
591+
Behavior on height {
592+
NumberAnimation {
593+
duration: Kirigami.Units.shortDuration
594+
easing.type: Easing.InOutQuad
595+
}
596+
}
597+
}
598+
574599
Rectangle {
575600
id: statusBubble
576601

0 commit comments

Comments
 (0)