mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 09:28:58 +08:00
Color of progress bar now changes based on jobstate
CURA-1036
This commit is contained in:
parent
ef9ce7ad55
commit
1f9acf0b54
@ -48,7 +48,7 @@ Rectangle
|
|||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
color: "green"
|
color: Cura.MachineManager.printerOutputDevices[0].jobState == "paused" ? "orange": "green"
|
||||||
font: UM.Theme.getFont("large")
|
font: UM.Theme.getFont("large")
|
||||||
text: statusText;
|
text: statusText;
|
||||||
}
|
}
|
||||||
@ -60,7 +60,7 @@ Rectangle
|
|||||||
anchors.right: progressBar.right
|
anchors.right: progressBar.right
|
||||||
//anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
//anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
color: "green"
|
color: Cura.MachineManager.printerOutputDevices[0].jobState == "paused" ? "orange": "green"
|
||||||
font: UM.Theme.getFont("large")
|
font: UM.Theme.getFont("large")
|
||||||
text: Math.round(progress * 100) + "%" ;
|
text: Math.round(progress * 100) + "%" ;
|
||||||
}
|
}
|
||||||
@ -81,9 +81,8 @@ Rectangle
|
|||||||
{
|
{
|
||||||
width: Math.max(parent.width * base.progress)
|
width: Math.max(parent.width * base.progress)
|
||||||
height: parent.height
|
height: parent.height
|
||||||
color: "green"
|
color: Cura.MachineManager.printerOutputDevices[0].jobState == "paused" ? "orange": "green"
|
||||||
radius: UM.Theme.getSize("progressbar_radius").width
|
radius: UM.Theme.getSize("progressbar_radius").width
|
||||||
//visible: base.backendState == 2 ? true : false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user