mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00
Also show a progress bar for waiting items
This commit is contained in:
parent
90871d01eb
commit
cfb7af6b66
1 changed files with 2 additions and 2 deletions
|
@ -176,7 +176,7 @@ ProgressBar := Rectangle {
|
|||
background: DemoPalette.neutral_box;
|
||||
|
||||
Rectangle {
|
||||
width: progress * parent.width / 100;
|
||||
width: max(6px, progress * parent.width / 100);
|
||||
border-radius: parent.border-radius;
|
||||
background: DemoPalette.control_foreground;
|
||||
}
|
||||
|
@ -217,7 +217,7 @@ WidePrintQueueElement := Rectangle {
|
|||
font-weight: 800;
|
||||
letter-spacing: 1.56px;
|
||||
}
|
||||
if (queue_item.progress > 0) : ProgressBar {
|
||||
ProgressBar {
|
||||
progress: queue_item.progress;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue