mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-13 05:08:03 +08:00
Added opacity to preview if print is done / paused
CL-896
This commit is contained in:
parent
9564f98ccc
commit
d57f166b08
@ -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…
x
Reference in New Issue
Block a user