mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 18:27:51 -06:00
Added icons to beter indicate printjob state
CL-896
This commit is contained in:
parent
d57f166b08
commit
39b12fed77
4 changed files with 35 additions and 0 deletions
|
@ -456,6 +456,38 @@ Component
|
||||||
return 1.0
|
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
|
Rectangle
|
||||||
|
|
1
plugins/UM3NetworkPrinting/aborted-icon.svg
Normal file
1
plugins/UM3NetworkPrinting/aborted-icon.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>aborted-icon</title><path d="M16,0A16,16,0,1,0,32,16,16,16,0,0,0,16,0Zm1.69,28.89a13,13,0,1,1,11.2-11.2A13,13,0,0,1,17.69,28.89Z"/><polygon points="20.6 9.28 16 13.88 11.4 9.28 9.28 11.4 13.88 16 9.28 20.6 11.4 22.72 16 18.12 20.6 22.72 22.72 20.6 18.12 16 22.72 11.4 20.6 9.28"/></svg>
|
After Width: | Height: | Size: 386 B |
1
plugins/UM3NetworkPrinting/approved-icon.svg
Normal file
1
plugins/UM3NetworkPrinting/approved-icon.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>approved-icon</title><path d="M16,29A13,13,0,1,0,3,16,13,13,0,0,0,16,29ZM8,14.59l6,5.3L23.89,9l2.22,2L14.18,24.11,6,16.83Z" fill="none"/><path d="M16,32A16,16,0,1,0,0,16,16,16,0,0,0,16,32ZM16,3A13,13,0,1,1,3,16,13,13,0,0,1,16,3Z"/><polygon points="26.11 11.01 23.89 8.99 13.96 19.89 8 14.59 6 16.83 14.18 24.11 26.11 11.01"/></svg>
|
After Width: | Height: | Size: 431 B |
1
plugins/UM3NetworkPrinting/paused-icon.svg
Normal file
1
plugins/UM3NetworkPrinting/paused-icon.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>paused-icon</title><path d="M16,0A16,16,0,1,0,32,16,16,16,0,0,0,16,0Zm0,29A13,13,0,1,1,29,16,13,13,0,0,1,16,29Z"/><rect x="11.5" y="9" width="3" height="14"/><rect x="17.5" y="9" width="3" height="14"/></svg>
|
After Width: | Height: | Size: 308 B |
Loading…
Add table
Add a link
Reference in a new issue