Added icons to beter indicate printjob state

CL-896
This commit is contained in:
Jaime van Kessel 2018-08-24 16:47:46 +02:00
parent d57f166b08
commit 39b12fed77
4 changed files with 35 additions and 0 deletions

View file

@ -456,6 +456,38 @@ Component
return 1.0
}
}
}
UM.RecolorImage
{
id: statusImage
anchors.centerIn: printJobPreview
source:
{
if(modelData.activePrintJob == null)
{
return ""
}
switch(modelData.activePrintJob.state)
{
case "paused":
return "paused-icon.svg"
case "wait_cleanup":
return "approved-icon.svg"
case "wait_user_action":
return "aborted-icon.svg"
default:
return ""
}
}
visible: source != ""
width: 0.5 * printJobPreview.width
height: 0.5 * printJobPreview.height
sourceSize.width: width
sourceSize.height: height
color: "black"
}
Rectangle