|
@@ -103,7 +103,7 @@ Item
|
|
|
Label
|
|
|
{
|
|
|
text: printer && printer.name ? printer.name : ""
|
|
|
- color: UM.Theme.getColor("monitor_text_primary")
|
|
|
+ color: UM.Theme.getColor("text")
|
|
|
elide: Text.ElideRight
|
|
|
font: UM.Theme.getFont("large") // 16pt, bold
|
|
|
width: parent.width
|
|
@@ -130,7 +130,7 @@ Item
|
|
|
anchors
|
|
|
{
|
|
|
top: printerNameLabel.bottom
|
|
|
- topMargin: 6 * screenScaleFactor // TODO: Theme!
|
|
|
+ topMargin: UM.Theme.getSize("narrow_margin").height
|
|
|
left: printerNameLabel.left
|
|
|
}
|
|
|
text: printer ? printer.type : ""
|
|
@@ -140,7 +140,7 @@ Item
|
|
|
id: managePrinterLink
|
|
|
anchors {
|
|
|
top: printerFamilyPill.bottom
|
|
|
- topMargin: 6 * screenScaleFactor
|
|
|
+ topMargin: UM.Theme.getSize("narrow_margin").height
|
|
|
}
|
|
|
height: 18 * screenScaleFactor // TODO: Theme!
|
|
|
width: childrenRect.width
|
|
@@ -160,7 +160,7 @@ Item
|
|
|
anchors
|
|
|
{
|
|
|
left: managePrinterText.right
|
|
|
- leftMargin: 6 * screenScaleFactor
|
|
|
+ leftMargin: UM.Theme.getSize("narrow_margin").width
|
|
|
verticalCenter: managePrinterText.verticalCenter
|
|
|
}
|
|
|
color: UM.Theme.getColor("text_link")
|
|
@@ -194,8 +194,7 @@ Item
|
|
|
var configs = []
|
|
|
if (printer)
|
|
|
{
|
|
|
- configs.push(printer.printerConfiguration.extruderConfigurations[0])
|
|
|
- configs.push(printer.printerConfiguration.extruderConfigurations[1])
|
|
|
+ configs = configs.concat(printer.printerConfiguration.extruderConfigurations)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -272,7 +271,8 @@ Item
|
|
|
}
|
|
|
|
|
|
// For cloud printing, add this mouse area over the disabled cameraButton to indicate that it's not available
|
|
|
- MouseArea
|
|
|
+ //Warning message is commented out because it's factually incorrect. Fix CURA-7637 to allow camera connections via cloud.
|
|
|
+ /* MouseArea
|
|
|
{
|
|
|
id: cameraDisabledButtonArea
|
|
|
anchors.fill: cameraButton
|
|
@@ -282,7 +282,7 @@ Item
|
|
|
enabled: !cameraButton.enabled
|
|
|
}
|
|
|
|
|
|
- /* //Warning message is commented out because it's factually incorrect. Fix CURA-7637 to allow camera connections via cloud.
|
|
|
+
|
|
|
MonitorInfoBlurb
|
|
|
{
|
|
|
id: cameraDisabledInfo
|
|
@@ -341,24 +341,29 @@ Item
|
|
|
{
|
|
|
verticalCenter: parent.verticalCenter
|
|
|
}
|
|
|
- color: printer ? UM.Theme.getColor("monitor_text_primary") : UM.Theme.getColor("monitor_text_disabled")
|
|
|
+ color: printer ? UM.Theme.getColor("text") : UM.Theme.getColor("monitor_text_disabled")
|
|
|
font: UM.Theme.getFont("large_bold") // 16pt, bold
|
|
|
text: {
|
|
|
if (!printer) {
|
|
|
return catalog.i18nc("@label:status", "Loading...")
|
|
|
}
|
|
|
- if (printer && printer.state == "disabled")
|
|
|
+ if (printer.state == "disabled")
|
|
|
{
|
|
|
return catalog.i18nc("@label:status", "Unavailable")
|
|
|
}
|
|
|
- if (printer && printer.state == "unreachable")
|
|
|
+ if (printer.state == "unreachable")
|
|
|
{
|
|
|
return catalog.i18nc("@label:status", "Unreachable")
|
|
|
}
|
|
|
- if (printer && !printer.activePrintJob && printer.state == "idle")
|
|
|
+ if (!printer.activePrintJob && printer.state == "idle")
|
|
|
{
|
|
|
return catalog.i18nc("@label:status", "Idle")
|
|
|
}
|
|
|
+ if (!printer.activePrintJob && printer.state == "printing")
|
|
|
+ {
|
|
|
+ // The print job isn't quite updated yet.
|
|
|
+ return catalog.i18nc("@label:status", "Printing")
|
|
|
+ }
|
|
|
return ""
|
|
|
}
|
|
|
visible: text !== ""
|
|
@@ -395,7 +400,7 @@ Item
|
|
|
Label
|
|
|
{
|
|
|
id: printerJobNameLabel
|
|
|
- color: printer && printer.activePrintJob && printer.activePrintJob.isActive ? UM.Theme.getColor("monitor_text_primary") : UM.Theme.getColor("monitor_text_disabled")
|
|
|
+ color: printer && printer.activePrintJob && printer.activePrintJob.isActive ? UM.Theme.getColor("text") : UM.Theme.getColor("monitor_text_disabled")
|
|
|
elide: Text.ElideRight
|
|
|
font: UM.Theme.getFont("large") // 16pt, bold
|
|
|
text: printer && printer.activePrintJob ? printer.activePrintJob.name : catalog.i18nc("@label", "Untitled")
|
|
@@ -413,10 +418,10 @@ Item
|
|
|
anchors
|
|
|
{
|
|
|
top: printerJobNameLabel.bottom
|
|
|
- topMargin: 6 * screenScaleFactor // TODO: Theme!
|
|
|
+ topMargin: UM.Theme.getSize("narrow_margin").height
|
|
|
left: printerJobNameLabel.left
|
|
|
}
|
|
|
- color: printer && printer.activePrintJob && printer.activePrintJob.isActive ? UM.Theme.getColor("monitor_text_primary") : UM.Theme.getColor("monitor_text_disabled")
|
|
|
+ color: printer && printer.activePrintJob && printer.activePrintJob.isActive ? UM.Theme.getColor("text") : UM.Theme.getColor("monitor_text_disabled")
|
|
|
elide: Text.ElideRight
|
|
|
font: UM.Theme.getFont("default") // 12pt, regular
|
|
|
text: printer && printer.activePrintJob ? printer.activePrintJob.owner : catalog.i18nc("@label", "Anonymous")
|
|
@@ -448,7 +453,7 @@ Item
|
|
|
font: UM.Theme.getFont("default")
|
|
|
text: catalog.i18nc("@label:status", "Requires configuration changes")
|
|
|
visible: printer && printer.activePrintJob && printer.activePrintJob.configurationChanges.length > 0 && !printerStatus.visible
|
|
|
- color: UM.Theme.getColor("monitor_text_primary")
|
|
|
+ color: UM.Theme.getColor("text")
|
|
|
|
|
|
// FIXED-LINE-HEIGHT:
|
|
|
height: 18 * screenScaleFactor // TODO: Theme!
|
|
@@ -484,7 +489,7 @@ Item
|
|
|
anchors.bottomMargin: 2 * screenScaleFactor // TODO: Theme!
|
|
|
color: UM.Theme.getColor("monitor_secondary_button_text")
|
|
|
font: UM.Theme.getFont("medium") // 14pt, regular
|
|
|
- text: catalog.i18nc("@action:button","Details");
|
|
|
+ text: catalog.i18nc("@action:button", "Details");
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
height: 18 * screenScaleFactor // TODO: Theme!
|