mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Added opacity to preview if print is done / paused
CL-896
This commit is contained in:
parent
9564f98ccc
commit
d57f166b08
1 changed files with 17 additions and 0 deletions
|
@ -439,6 +439,23 @@ Component
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
width: parent.width / 2
|
width: parent.width / 2
|
||||||
height: width
|
height: width
|
||||||
|
opacity:
|
||||||
|
{
|
||||||
|
if(modelData.activePrintJob == null)
|
||||||
|
{
|
||||||
|
return 1.0
|
||||||
|
}
|
||||||
|
|
||||||
|
switch(modelData.activePrintJob.state)
|
||||||
|
{
|
||||||
|
case "wait_cleanup":
|
||||||
|
case "wait_user_action":
|
||||||
|
case "paused":
|
||||||
|
return 0.5
|
||||||
|
default:
|
||||||
|
return 1.0
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue