mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 18:55:59 +08:00
Added progress percentage label
CURA-1036
This commit is contained in:
parent
ec34d92500
commit
168246d594
@ -53,6 +53,18 @@ Rectangle
|
|||||||
text: statusText;
|
text: statusText;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
id: percentageLabel
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.right: progressBar.right
|
||||||
|
//anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
|
color: "green"
|
||||||
|
font: UM.Theme.getFont("large")
|
||||||
|
text: Math.round(progress * 100) + "%" ;
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
id: progressBar
|
id: progressBar
|
||||||
|
Loading…
x
Reference in New Issue
Block a user