mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-21 20:19:32 +08:00
Removed the static placeholders for monitor info
CL-894
This commit is contained in:
parent
0fe0e4ac54
commit
5bee561c9c
@ -19,7 +19,7 @@ Item
|
||||
text: printCoreConfiguration.activeMaterial != null ? printCoreConfiguration.activeMaterial.name : ":("
|
||||
elide: Text.ElideRight
|
||||
width: parent.width
|
||||
font: UM.Theme.getFont("very_small")
|
||||
font: UM.Theme.getFont("default_bold")
|
||||
}
|
||||
|
||||
Label
|
||||
@ -29,7 +29,5 @@ Item
|
||||
anchors.top: materialLabel.bottom
|
||||
elide: Text.ElideRight
|
||||
width: parent.width
|
||||
font: UM.Theme.getFont("very_small")
|
||||
opacity: 0.5
|
||||
}
|
||||
}
|
||||
|
@ -35,14 +35,15 @@ Item
|
||||
Label
|
||||
{
|
||||
id: printJobName
|
||||
text: "printJobName"
|
||||
text: printJob.name
|
||||
font: UM.Theme.getFont("default_bold")
|
||||
}
|
||||
|
||||
Label
|
||||
{
|
||||
id: ownerName
|
||||
anchors.top: printJobName.bottom
|
||||
text: "OwnerName"
|
||||
text: printJob.owner
|
||||
}
|
||||
|
||||
Image
|
||||
@ -61,7 +62,7 @@ Item
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.right: parent.right
|
||||
|
||||
text: printJob != null ? getPrettyTime(printJob.timeTotal) : "3h 12m"
|
||||
text: printJob != null ? getPrettyTime(printJob.timeTotal) : ""
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
}
|
||||
@ -81,7 +82,27 @@ Item
|
||||
Label
|
||||
{
|
||||
id: targetPrinterLabel
|
||||
text: "Waiting for: first available"
|
||||
elide: Text.ElideRight
|
||||
font: UM.Theme.getFont("default_bold")
|
||||
text:
|
||||
{
|
||||
if(printJob.assignedPrinter == null)
|
||||
{
|
||||
return "Waiting for: first available"
|
||||
}
|
||||
else
|
||||
{
|
||||
return "Waiting for: " + printJob.assignedPrinter.name
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
anchors
|
||||
{
|
||||
left: parent.left
|
||||
right: contextButton.left
|
||||
rightMargin: UM.Theme.getSize("default_margin").width
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -89,6 +110,7 @@ Item
|
||||
{
|
||||
popup.visible ? popup.close() : popup.open()
|
||||
}
|
||||
|
||||
Button
|
||||
{
|
||||
id: contextButton
|
||||
@ -119,8 +141,8 @@ Item
|
||||
transformOrigin: Popup.Top
|
||||
contentItem: Item
|
||||
{
|
||||
width: panelWidth - 2 * popup.padding
|
||||
height: cildrenRect.height
|
||||
width: popup.width - 2 * popup.padding
|
||||
height: childrenRect.height
|
||||
Button
|
||||
{
|
||||
text: "Send to top"
|
||||
|
Loading…
x
Reference in New Issue
Block a user