Also show a progress bar for waiting items

This commit is contained in:
Simon Hausmann 2021-02-17 17:08:12 +01:00 committed by Olivier Goffart
parent 90871d01eb
commit cfb7af6b66

View file

@ -176,7 +176,7 @@ ProgressBar := Rectangle {
background: DemoPalette.neutral_box; background: DemoPalette.neutral_box;
Rectangle { Rectangle {
width: progress * parent.width / 100; width: max(6px, progress * parent.width / 100);
border-radius: parent.border-radius; border-radius: parent.border-radius;
background: DemoPalette.control_foreground; background: DemoPalette.control_foreground;
} }
@ -217,7 +217,7 @@ WidePrintQueueElement := Rectangle {
font-weight: 800; font-weight: 800;
letter-spacing: 1.56px; letter-spacing: 1.56px;
} }
if (queue_item.progress > 0) : ProgressBar { ProgressBar {
progress: queue_item.progress; progress: queue_item.progress;
} }
} }