mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 18:27:51 -06:00
Merge branch 'CURA-7745-fix-montior-page-hacks'
This commit is contained in:
commit
81217880fd
15 changed files with 48 additions and 66 deletions
|
@ -99,7 +99,7 @@ Rectangle
|
||||||
visible: isNetworkConfigured && !isConnected
|
visible: isNetworkConfigured && !isConnected
|
||||||
text: catalog.i18nc("@info", "Please make sure your printer has a connection:\n- Check if the printer is turned on.\n- Check if the printer is connected to the network.\n- Check if you are signed in to discover cloud-connected printers.")
|
text: catalog.i18nc("@info", "Please make sure your printer has a connection:\n- Check if the printer is turned on.\n- Check if the printer is connected to the network.\n- Check if you are signed in to discover cloud-connected printers.")
|
||||||
font: UM.Theme.getFont("medium")
|
font: UM.Theme.getFont("medium")
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
lineHeight: UM.Theme.getSize("monitor_text_line_large").height
|
lineHeight: UM.Theme.getSize("monitor_text_line_large").height
|
||||||
lineHeightMode: Text.FixedHeight
|
lineHeightMode: Text.FixedHeight
|
||||||
|
@ -116,7 +116,7 @@ Rectangle
|
||||||
visible: !isNetworkConfigured && isNetworkConfigurable
|
visible: !isNetworkConfigured && isNetworkConfigurable
|
||||||
text: catalog.i18nc("@info", "Please connect your printer to the network.")
|
text: catalog.i18nc("@info", "Please connect your printer to the network.")
|
||||||
font: UM.Theme.getFont("medium")
|
font: UM.Theme.getFont("medium")
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
width: contentWidth
|
width: contentWidth
|
||||||
lineHeight: UM.Theme.getSize("monitor_text_line_large").height
|
lineHeight: UM.Theme.getSize("monitor_text_line_large").height
|
||||||
|
|
|
@ -60,7 +60,7 @@ Item
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
id: buildplateLabel
|
id: buildplateLabel
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
font: UM.Theme.getFont("default") // 12pt, regular
|
font: UM.Theme.getFont("default") // 12pt, regular
|
||||||
text: buildplate ? buildplate : ""
|
text: buildplate ? buildplate : ""
|
||||||
|
|
|
@ -97,7 +97,7 @@ Item
|
||||||
height: width // TODO: Theme!
|
height: width // TODO: Theme!
|
||||||
sourceSize.width: width // TODO: Theme!
|
sourceSize.width: width // TODO: Theme!
|
||||||
sourceSize.height: width // TODO: Theme!
|
sourceSize.height: width // TODO: Theme!
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
source: UM.Theme.getIcon("arrow_left")
|
source: UM.Theme.getIcon("arrow_left")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -176,7 +176,7 @@ Item
|
||||||
height: width // TODO: Theme!
|
height: width // TODO: Theme!
|
||||||
sourceSize.width: width // TODO: Theme!
|
sourceSize.width: width // TODO: Theme!
|
||||||
sourceSize.height: width // TODO: Theme!
|
sourceSize.height: width // TODO: Theme!
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
source: UM.Theme.getIcon("arrow_right")
|
source: UM.Theme.getIcon("arrow_right")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ Button
|
||||||
width: base.width
|
width: base.width
|
||||||
}
|
}
|
||||||
contentItem: Label {
|
contentItem: Label {
|
||||||
color: enabled ? UM.Theme.getColor("monitor_text_primary") : UM.Theme.getColor("monitor_text_disabled")
|
color: enabled ? UM.Theme.getColor("text") : UM.Theme.getColor("monitor_text_disabled")
|
||||||
font.pixelSize: 32 * screenScaleFactor
|
font.pixelSize: 32 * screenScaleFactor
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
text: base.text
|
text: base.text
|
||||||
|
|
|
@ -57,7 +57,7 @@ Item
|
||||||
{
|
{
|
||||||
id: materialLabel
|
id: materialLabel
|
||||||
|
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
font: UM.Theme.getFont("default") // 12pt, regular
|
font: UM.Theme.getFont("default") // 12pt, regular
|
||||||
text: ""
|
text: ""
|
||||||
|
@ -87,7 +87,7 @@ Item
|
||||||
{
|
{
|
||||||
id: printCoreLabel
|
id: printCoreLabel
|
||||||
|
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
font: UM.Theme.getFont("default_bold") // 12pt, bold
|
font: UM.Theme.getFont("default_bold") // 12pt, bold
|
||||||
text: ""
|
text: ""
|
||||||
|
|
|
@ -39,7 +39,7 @@ Item
|
||||||
{
|
{
|
||||||
id: positionLabel
|
id: positionLabel
|
||||||
font: UM.Theme.getFont("small")
|
font: UM.Theme.getFont("small")
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
height: Math.round(size / 2)
|
height: Math.round(size / 2)
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
text: position + 1
|
text: position + 1
|
||||||
|
|
|
@ -58,7 +58,7 @@ Item
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: printJob && printJob.name ? printJob.name : ""
|
text: printJob && printJob.name ? printJob.name : ""
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
font: UM.Theme.getFont("medium") // 14pt, regular
|
font: UM.Theme.getFont("medium") // 14pt, regular
|
||||||
visible: printJob
|
visible: printJob
|
||||||
|
@ -89,7 +89,7 @@ Item
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: printJob ? OutputDevice.formatDuration(printJob.timeTotal) : ""
|
text: printJob ? OutputDevice.formatDuration(printJob.timeTotal) : ""
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
font: UM.Theme.getFont("medium") // 14pt, regular
|
font: UM.Theme.getFont("medium") // 14pt, regular
|
||||||
visible: printJob
|
visible: printJob
|
||||||
|
@ -120,7 +120,7 @@ Item
|
||||||
{
|
{
|
||||||
id: printerAssignmentLabel
|
id: printerAssignmentLabel
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
font: UM.Theme.getFont("medium") // 14pt, regular
|
font: UM.Theme.getFont("medium") // 14pt, regular
|
||||||
text: {
|
text: {
|
||||||
|
@ -188,7 +188,7 @@ Item
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: printJob && printJob.owner ? printJob.owner : ""
|
text: printJob && printJob.owner ? printJob.owner : ""
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
font: UM.Theme.getFont("medium") // 14pt, regular
|
font: UM.Theme.getFont("medium") // 14pt, regular
|
||||||
anchors.top: printerConfiguration.top
|
anchors.top: printerConfiguration.top
|
||||||
|
|
|
@ -44,7 +44,7 @@ Item
|
||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
text: printJob ? Math.round(printJob.progress * 100) + "%" : "0%"
|
text: printJob ? Math.round(printJob.progress * 100) + "%" : "0%"
|
||||||
color: printJob && printJob.isActive ? UM.Theme.getColor("monitor_text_primary") : UM.Theme.getColor("monitor_text_disabled")
|
color: printJob && printJob.isActive ? UM.Theme.getColor("text") : UM.Theme.getColor("monitor_text_disabled")
|
||||||
width: contentWidth
|
width: contentWidth
|
||||||
font: UM.Theme.getFont("default") // 12pt, regular
|
font: UM.Theme.getFont("default") // 12pt, regular
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ Item
|
||||||
leftMargin: UM.Theme.getSize("monitor_margin").width
|
leftMargin: UM.Theme.getSize("monitor_margin").width
|
||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
text:
|
text:
|
||||||
{
|
{
|
||||||
|
|
|
@ -103,7 +103,7 @@ Item
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: printer && printer.name ? printer.name : ""
|
text: printer && printer.name ? printer.name : ""
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
font: UM.Theme.getFont("large") // 16pt, bold
|
font: UM.Theme.getFont("large") // 16pt, bold
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
@ -130,7 +130,7 @@ Item
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
top: printerNameLabel.bottom
|
top: printerNameLabel.bottom
|
||||||
topMargin: 6 * screenScaleFactor // TODO: Theme!
|
topMargin: UM.Theme.getSize("narrow_margin").height
|
||||||
left: printerNameLabel.left
|
left: printerNameLabel.left
|
||||||
}
|
}
|
||||||
text: printer ? printer.type : ""
|
text: printer ? printer.type : ""
|
||||||
|
@ -140,7 +140,7 @@ Item
|
||||||
id: managePrinterLink
|
id: managePrinterLink
|
||||||
anchors {
|
anchors {
|
||||||
top: printerFamilyPill.bottom
|
top: printerFamilyPill.bottom
|
||||||
topMargin: 6 * screenScaleFactor
|
topMargin: UM.Theme.getSize("narrow_margin").height
|
||||||
}
|
}
|
||||||
height: 18 * screenScaleFactor // TODO: Theme!
|
height: 18 * screenScaleFactor // TODO: Theme!
|
||||||
width: childrenRect.width
|
width: childrenRect.width
|
||||||
|
@ -160,7 +160,7 @@ Item
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
left: managePrinterText.right
|
left: managePrinterText.right
|
||||||
leftMargin: 6 * screenScaleFactor
|
leftMargin: UM.Theme.getSize("narrow_margin").width
|
||||||
verticalCenter: managePrinterText.verticalCenter
|
verticalCenter: managePrinterText.verticalCenter
|
||||||
}
|
}
|
||||||
color: UM.Theme.getColor("text_link")
|
color: UM.Theme.getColor("text_link")
|
||||||
|
@ -194,8 +194,7 @@ Item
|
||||||
var configs = []
|
var configs = []
|
||||||
if (printer)
|
if (printer)
|
||||||
{
|
{
|
||||||
configs.push(printer.printerConfiguration.extruderConfigurations[0])
|
configs = configs.concat(printer.printerConfiguration.extruderConfigurations)
|
||||||
configs.push(printer.printerConfiguration.extruderConfigurations[1])
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -272,7 +271,8 @@ Item
|
||||||
}
|
}
|
||||||
|
|
||||||
// For cloud printing, add this mouse area over the disabled cameraButton to indicate that it's not available
|
// 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
|
id: cameraDisabledButtonArea
|
||||||
anchors.fill: cameraButton
|
anchors.fill: cameraButton
|
||||||
|
@ -282,7 +282,7 @@ Item
|
||||||
enabled: !cameraButton.enabled
|
enabled: !cameraButton.enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
/* //Warning message is commented out because it's factually incorrect. Fix CURA-7637 to allow camera connections via cloud.
|
|
||||||
MonitorInfoBlurb
|
MonitorInfoBlurb
|
||||||
{
|
{
|
||||||
id: cameraDisabledInfo
|
id: cameraDisabledInfo
|
||||||
|
@ -341,24 +341,29 @@ Item
|
||||||
{
|
{
|
||||||
verticalCenter: parent.verticalCenter
|
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
|
font: UM.Theme.getFont("large_bold") // 16pt, bold
|
||||||
text: {
|
text: {
|
||||||
if (!printer) {
|
if (!printer) {
|
||||||
return catalog.i18nc("@label:status", "Loading...")
|
return catalog.i18nc("@label:status", "Loading...")
|
||||||
}
|
}
|
||||||
if (printer && printer.state == "disabled")
|
if (printer.state == "disabled")
|
||||||
{
|
{
|
||||||
return catalog.i18nc("@label:status", "Unavailable")
|
return catalog.i18nc("@label:status", "Unavailable")
|
||||||
}
|
}
|
||||||
if (printer && printer.state == "unreachable")
|
if (printer.state == "unreachable")
|
||||||
{
|
{
|
||||||
return catalog.i18nc("@label:status", "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")
|
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 ""
|
return ""
|
||||||
}
|
}
|
||||||
visible: text !== ""
|
visible: text !== ""
|
||||||
|
@ -395,7 +400,7 @@ Item
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
id: printerJobNameLabel
|
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
|
elide: Text.ElideRight
|
||||||
font: UM.Theme.getFont("large") // 16pt, bold
|
font: UM.Theme.getFont("large") // 16pt, bold
|
||||||
text: printer && printer.activePrintJob ? printer.activePrintJob.name : catalog.i18nc("@label", "Untitled")
|
text: printer && printer.activePrintJob ? printer.activePrintJob.name : catalog.i18nc("@label", "Untitled")
|
||||||
|
@ -413,10 +418,10 @@ Item
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
top: printerJobNameLabel.bottom
|
top: printerJobNameLabel.bottom
|
||||||
topMargin: 6 * screenScaleFactor // TODO: Theme!
|
topMargin: UM.Theme.getSize("narrow_margin").height
|
||||||
left: printerJobNameLabel.left
|
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
|
elide: Text.ElideRight
|
||||||
font: UM.Theme.getFont("default") // 12pt, regular
|
font: UM.Theme.getFont("default") // 12pt, regular
|
||||||
text: printer && printer.activePrintJob ? printer.activePrintJob.owner : catalog.i18nc("@label", "Anonymous")
|
text: printer && printer.activePrintJob ? printer.activePrintJob.owner : catalog.i18nc("@label", "Anonymous")
|
||||||
|
@ -448,7 +453,7 @@ Item
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
text: catalog.i18nc("@label:status", "Requires configuration changes")
|
text: catalog.i18nc("@label:status", "Requires configuration changes")
|
||||||
visible: printer && printer.activePrintJob && printer.activePrintJob.configurationChanges.length > 0 && !printerStatus.visible
|
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:
|
// FIXED-LINE-HEIGHT:
|
||||||
height: 18 * screenScaleFactor // TODO: Theme!
|
height: 18 * screenScaleFactor // TODO: Theme!
|
||||||
|
@ -484,7 +489,7 @@ Item
|
||||||
anchors.bottomMargin: 2 * screenScaleFactor // TODO: Theme!
|
anchors.bottomMargin: 2 * screenScaleFactor // TODO: Theme!
|
||||||
color: UM.Theme.getColor("monitor_secondary_button_text")
|
color: UM.Theme.getColor("monitor_secondary_button_text")
|
||||||
font: UM.Theme.getFont("medium") // 14pt, regular
|
font: UM.Theme.getFont("medium") // 14pt, regular
|
||||||
text: catalog.i18nc("@action:button","Details");
|
text: catalog.i18nc("@action:button", "Details");
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
height: 18 * screenScaleFactor // TODO: Theme!
|
height: 18 * screenScaleFactor // TODO: Theme!
|
||||||
|
|
|
@ -27,7 +27,7 @@ Item
|
||||||
Label {
|
Label {
|
||||||
id: printerNameLabel
|
id: printerNameLabel
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
text: monitorPrinterPill.text
|
text: monitorPrinterPill.text
|
||||||
font.pointSize: 10 // TODO: Theme!
|
font.pointSize: 10 // TODO: Theme!
|
||||||
visible: monitorPrinterPill.text !== ""
|
visible: monitorPrinterPill.text !== ""
|
||||||
|
|
|
@ -26,7 +26,7 @@ Item
|
||||||
left: queuedPrintJobs.left
|
left: queuedPrintJobs.left
|
||||||
top: parent.top
|
top: parent.top
|
||||||
}
|
}
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
font: UM.Theme.getFont("large")
|
font: UM.Theme.getFont("large")
|
||||||
text: catalog.i18nc("@label", "Queued")
|
text: catalog.i18nc("@label", "Queued")
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
|
@ -58,7 +58,7 @@ Item
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
left: externalLinkIcon.right
|
left: externalLinkIcon.right
|
||||||
leftMargin: 6 * screenScaleFactor // TODO: Theme!
|
leftMargin: UM.Theme.getSize("narrow_margin").width
|
||||||
verticalCenter: externalLinkIcon.verticalCenter
|
verticalCenter: externalLinkIcon.verticalCenter
|
||||||
}
|
}
|
||||||
color: UM.Theme.getColor("text_link")
|
color: UM.Theme.getColor("text_link")
|
||||||
|
@ -88,7 +88,7 @@ Item
|
||||||
anchors
|
anchors
|
||||||
{
|
{
|
||||||
left: queuedPrintJobs.left
|
left: queuedPrintJobs.left
|
||||||
leftMargin: 6 * screenScaleFactor // TODO: Theme!
|
leftMargin: UM.Theme.getSize("narrow_margin").width
|
||||||
top: queuedLabel.bottom
|
top: queuedLabel.bottom
|
||||||
topMargin: 24 * screenScaleFactor // TODO: Theme!
|
topMargin: 24 * screenScaleFactor // TODO: Theme!
|
||||||
}
|
}
|
||||||
|
@ -97,14 +97,10 @@ Item
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@label", "There are no print jobs in the queue. Slice and send a job to add one.")
|
text: catalog.i18nc("@label", "There are no print jobs in the queue. Slice and send a job to add one.")
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
elide: Text.ElideRight
|
font: UM.Theme.getFont("medium")
|
||||||
font: UM.Theme.getFont("medium") // 14pt, regular
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
// FIXED-LINE-HEIGHT:
|
|
||||||
height: 18 * screenScaleFactor // TODO: Theme!
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
visible: printJobList.count === 0
|
visible: printJobList.count === 0
|
||||||
}
|
}
|
||||||
|
@ -112,15 +108,11 @@ Item
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@label", "Print jobs")
|
text: catalog.i18nc("@label", "Print jobs")
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
elide: Text.ElideRight
|
|
||||||
font: UM.Theme.getFont("medium") // 14pt, regular
|
font: UM.Theme.getFont("medium") // 14pt, regular
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
width: 284 * screenScaleFactor // TODO: Theme! (Should match column size)
|
width: 284 * screenScaleFactor // TODO: Theme! (Should match column size)
|
||||||
|
|
||||||
// FIXED-LINE-HEIGHT:
|
|
||||||
height: 18 * screenScaleFactor // TODO: Theme!
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
visible: printJobList.count > 0
|
visible: printJobList.count > 0
|
||||||
}
|
}
|
||||||
|
@ -128,15 +120,11 @@ Item
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@label", "Total print time")
|
text: catalog.i18nc("@label", "Total print time")
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
elide: Text.ElideRight
|
|
||||||
font: UM.Theme.getFont("medium") // 14pt, regular
|
font: UM.Theme.getFont("medium") // 14pt, regular
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
width: UM.Theme.getSize("monitor_column").width
|
width: UM.Theme.getSize("monitor_column").width
|
||||||
|
|
||||||
// FIXED-LINE-HEIGHT:
|
|
||||||
height: 18 * screenScaleFactor // TODO: Theme!
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
visible: printJobList.count > 0
|
visible: printJobList.count > 0
|
||||||
}
|
}
|
||||||
|
@ -144,15 +132,11 @@ Item
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@label", "Waiting for")
|
text: catalog.i18nc("@label", "Waiting for")
|
||||||
color: UM.Theme.getColor("monitor_text_primary")
|
color: UM.Theme.getColor("text")
|
||||||
elide: Text.ElideRight
|
|
||||||
font: UM.Theme.getFont("medium") // 14pt, regular
|
font: UM.Theme.getFont("medium") // 14pt, regular
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
width: UM.Theme.getSize("monitor_column").width
|
width: UM.Theme.getSize("monitor_column").width
|
||||||
|
|
||||||
// FIXED-LINE-HEIGHT:
|
|
||||||
height: 18 * screenScaleFactor // TODO: Theme!
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
visible: printJobList.count > 0
|
visible: printJobList.count > 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ Button {
|
||||||
color: UM.Theme.getColor("monitor_context_menu_hover")
|
color: UM.Theme.getColor("monitor_context_menu_hover")
|
||||||
}
|
}
|
||||||
contentItem: Label {
|
contentItem: Label {
|
||||||
color: enabled ? UM.Theme.getColor("monitor_text_primary") : UM.Theme.getColor("monitor_text_disabled");
|
color: enabled ? UM.Theme.getColor("text") : UM.Theme.getColor("monitor_text_disabled");
|
||||||
text: parent.text
|
text: parent.text
|
||||||
horizontalAlignment: Text.AlignLeft;
|
horizontalAlignment: Text.AlignLeft;
|
||||||
verticalAlignment: Text.AlignVCenter;
|
verticalAlignment: Text.AlignVCenter;
|
||||||
|
|
|
@ -71,12 +71,7 @@ class ClusterPrinterStatus(BaseModel):
|
||||||
|
|
||||||
:param controller: - The controller of the model.
|
:param controller: - The controller of the model.
|
||||||
"""
|
"""
|
||||||
|
model = PrinterOutputModel(controller, len(self.configuration), firmware_version = self.firmware_version)
|
||||||
# FIXME
|
|
||||||
# Note that we're using '2' here as extruder count. We have hardcoded this for now to prevent issues where the
|
|
||||||
# amount of extruders coming back from the API is actually lower (which it can be if a printer was just added
|
|
||||||
# to a cluster). This should be fixed in the future, probably also on the cluster API side.
|
|
||||||
model = PrinterOutputModel(controller, 2, firmware_version = self.firmware_version)
|
|
||||||
self.updateOutputModel(model)
|
self.updateOutputModel(model)
|
||||||
return model
|
return model
|
||||||
|
|
||||||
|
|
|
@ -172,7 +172,6 @@
|
||||||
"toolbox_header_button_text_inactive": [128, 128, 128, 255],
|
"toolbox_header_button_text_inactive": [128, 128, 128, 255],
|
||||||
|
|
||||||
"monitor_printer_family_tag": [86, 86, 106, 255],
|
"monitor_printer_family_tag": [86, 86, 106, 255],
|
||||||
"monitor_text_primary": [229, 229, 229, 255],
|
|
||||||
"monitor_text_disabled": [102, 102, 102, 255],
|
"monitor_text_disabled": [102, 102, 102, 255],
|
||||||
"monitor_icon_primary": [229, 229, 229, 255],
|
"monitor_icon_primary": [229, 229, 229, 255],
|
||||||
"monitor_icon_accent": [51, 53, 54, 255],
|
"monitor_icon_accent": [51, 53, 54, 255],
|
||||||
|
|
|
@ -405,7 +405,6 @@
|
||||||
"favorites_row_selected": [196, 239, 255, 255],
|
"favorites_row_selected": [196, 239, 255, 255],
|
||||||
|
|
||||||
"monitor_printer_family_tag": [228, 228, 242, 255],
|
"monitor_printer_family_tag": [228, 228, 242, 255],
|
||||||
"monitor_text_primary": [65, 64, 84, 255],
|
|
||||||
"monitor_text_disabled": [238, 238, 238, 255],
|
"monitor_text_disabled": [238, 238, 238, 255],
|
||||||
"monitor_icon_primary": [10, 8, 80, 255],
|
"monitor_icon_primary": [10, 8, 80, 255],
|
||||||
"monitor_icon_accent": [255, 255, 255, 255],
|
"monitor_icon_accent": [255, 255, 255, 255],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue