mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Change all Label to Text so fonts are rendered correct
CURA-3389
This commit is contained in:
parent
ac46c4358b
commit
bfda8712e1
5 changed files with 22 additions and 22 deletions
|
@ -27,7 +27,7 @@ Column
|
||||||
height: childrenRect.height + UM.Theme.getSize("default_margin").height * 2
|
height: childrenRect.height + UM.Theme.getSize("default_margin").height * 2
|
||||||
color: UM.Theme.getColor("setting_category")
|
color: UM.Theme.getColor("setting_category")
|
||||||
|
|
||||||
Label
|
Text
|
||||||
{
|
{
|
||||||
id: connectedPrinterNameLabel
|
id: connectedPrinterNameLabel
|
||||||
text: connectedPrinter != null ? connectedPrinter.name : catalog.i18nc("@info:status", "No printer connected")
|
text: connectedPrinter != null ? connectedPrinter.name : catalog.i18nc("@info:status", "No printer connected")
|
||||||
|
@ -37,7 +37,7 @@ Column
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.margins: UM.Theme.getSize("default_margin").width
|
anchors.margins: UM.Theme.getSize("default_margin").width
|
||||||
}
|
}
|
||||||
Label
|
Text
|
||||||
{
|
{
|
||||||
id: connectedPrinterAddressLabel
|
id: connectedPrinterAddressLabel
|
||||||
text: (connectedPrinter != null && connectedPrinter.address != null) ? connectedPrinter.address : ""
|
text: (connectedPrinter != null && connectedPrinter.address != null) ? connectedPrinter.address : ""
|
||||||
|
@ -47,7 +47,7 @@ Column
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.margins: UM.Theme.getSize("default_margin").width
|
anchors.margins: UM.Theme.getSize("default_margin").width
|
||||||
}
|
}
|
||||||
Label
|
Text
|
||||||
{
|
{
|
||||||
text: connectedPrinter != null ? connectedPrinter.connectionText : catalog.i18nc("@info:status", "The printer is not connected.")
|
text: connectedPrinter != null ? connectedPrinter.connectionText : catalog.i18nc("@info:status", "The printer is not connected.")
|
||||||
color: connectedPrinter != null && connectedPrinter.acceptsCommands ? UM.Theme.getColor("setting_control_text") : UM.Theme.getColor("setting_control_disabled_text")
|
color: connectedPrinter != null && connectedPrinter.acceptsCommands ? UM.Theme.getColor("setting_control_text") : UM.Theme.getColor("setting_control_disabled_text")
|
||||||
|
@ -85,7 +85,7 @@ Column
|
||||||
width: index == machineExtruderCount.properties.value - 1 && index % 2 == 0 ? extrudersGrid.width : extrudersGrid.width / 2 - UM.Theme.getSize("sidebar_lining_thin").width / 2
|
width: index == machineExtruderCount.properties.value - 1 && index % 2 == 0 ? extrudersGrid.width : extrudersGrid.width / 2 - UM.Theme.getSize("sidebar_lining_thin").width / 2
|
||||||
height: UM.Theme.getSize("sidebar_extruder_box").height
|
height: UM.Theme.getSize("sidebar_extruder_box").height
|
||||||
|
|
||||||
Label //Extruder name.
|
Text //Extruder name.
|
||||||
{
|
{
|
||||||
text: ExtruderManager.getExtruderName(index) != "" ? ExtruderManager.getExtruderName(index) : catalog.i18nc("@label", "Hotend")
|
text: ExtruderManager.getExtruderName(index) != "" ? ExtruderManager.getExtruderName(index) : catalog.i18nc("@label", "Hotend")
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
|
@ -94,7 +94,7 @@ Column
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.margins: UM.Theme.getSize("default_margin").width
|
anchors.margins: UM.Theme.getSize("default_margin").width
|
||||||
}
|
}
|
||||||
Label //Temperature indication.
|
Text //Temperature indication.
|
||||||
{
|
{
|
||||||
id: extruderTemperature
|
id: extruderTemperature
|
||||||
text: (connectedPrinter != null && connectedPrinter.hotendIds[index] != null && connectedPrinter.hotendTemperatures[index] != null) ? Math.round(connectedPrinter.hotendTemperatures[index]) + "°C" : ""
|
text: (connectedPrinter != null && connectedPrinter.hotendIds[index] != null && connectedPrinter.hotendTemperatures[index] != null) ? Math.round(connectedPrinter.hotendTemperatures[index]) + "°C" : ""
|
||||||
|
@ -161,7 +161,7 @@ Column
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Label //Material name.
|
Text //Material name.
|
||||||
{
|
{
|
||||||
id: materialName
|
id: materialName
|
||||||
text: (connectedPrinter != null && connectedPrinter.materialNames[index] != null && connectedPrinter.materialIds[index] != "") ? connectedPrinter.materialNames[index] : ""
|
text: (connectedPrinter != null && connectedPrinter.materialNames[index] != null && connectedPrinter.materialIds[index] != "") ? connectedPrinter.materialNames[index] : ""
|
||||||
|
@ -193,7 +193,7 @@ Column
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Label //Variant name.
|
Text //Variant name.
|
||||||
{
|
{
|
||||||
id: variantName
|
id: variantName
|
||||||
text: (connectedPrinter != null && connectedPrinter.hotendIds[index] != null) ? connectedPrinter.hotendIds[index] : ""
|
text: (connectedPrinter != null && connectedPrinter.hotendIds[index] != null) ? connectedPrinter.hotendIds[index] : ""
|
||||||
|
@ -244,7 +244,7 @@ Column
|
||||||
height: machineHeatedBed.properties.value == "True" ? UM.Theme.getSize("sidebar_extruder_box").height : 0
|
height: machineHeatedBed.properties.value == "True" ? UM.Theme.getSize("sidebar_extruder_box").height : 0
|
||||||
visible: machineHeatedBed.properties.value == "True"
|
visible: machineHeatedBed.properties.value == "True"
|
||||||
|
|
||||||
Label //Build plate label.
|
Text //Build plate label.
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@label", "Build plate")
|
text: catalog.i18nc("@label", "Build plate")
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
|
@ -253,7 +253,7 @@ Column
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.margins: UM.Theme.getSize("default_margin").width
|
anchors.margins: UM.Theme.getSize("default_margin").width
|
||||||
}
|
}
|
||||||
Label //Target temperature.
|
Text //Target temperature.
|
||||||
{
|
{
|
||||||
id: bedTargetTemperature
|
id: bedTargetTemperature
|
||||||
text: connectedPrinter != null ? connectedPrinter.targetBedTemperature + "°C" : ""
|
text: connectedPrinter != null ? connectedPrinter.targetBedTemperature + "°C" : ""
|
||||||
|
@ -285,7 +285,7 @@ Column
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Label //Current temperature.
|
Text //Current temperature.
|
||||||
{
|
{
|
||||||
id: bedCurrentTemperature
|
id: bedCurrentTemperature
|
||||||
text: connectedPrinter != null ? connectedPrinter.bedTemperature + "°C" : ""
|
text: connectedPrinter != null ? connectedPrinter.bedTemperature + "°C" : ""
|
||||||
|
@ -353,7 +353,7 @@ Column
|
||||||
color: UM.Theme.getColor("setting_control_highlight")
|
color: UM.Theme.getColor("setting_control_highlight")
|
||||||
opacity: preheatTemperatureControl.hovered ? 1.0 : 0
|
opacity: preheatTemperatureControl.hovered ? 1.0 : 0
|
||||||
}
|
}
|
||||||
Label //Maximum temperature indication.
|
Text //Maximum temperature indication.
|
||||||
{
|
{
|
||||||
text: (bedTemperature.properties.maximum_value != "None" ? bedTemperature.properties.maximum_value : "") + "°C"
|
text: (bedTemperature.properties.maximum_value != "None" ? bedTemperature.properties.maximum_value : "") + "°C"
|
||||||
color: UM.Theme.getColor("setting_unit")
|
color: UM.Theme.getColor("setting_unit")
|
||||||
|
@ -452,7 +452,7 @@ Column
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Label
|
Text
|
||||||
{
|
{
|
||||||
id: preheatCountdown
|
id: preheatCountdown
|
||||||
text: connectedPrinter != null ? connectedPrinter.preheatBedRemainingTime : ""
|
text: connectedPrinter != null ? connectedPrinter.preheatBedRemainingTime : ""
|
||||||
|
@ -546,7 +546,7 @@ Column
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Text
|
||||||
{
|
{
|
||||||
id: actualLabel
|
id: actualLabel
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
@ -662,7 +662,7 @@ Column
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
Label
|
Text
|
||||||
{
|
{
|
||||||
width: parent.width * 0.4
|
width: parent.width * 0.4
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
@ -671,7 +671,7 @@ Column
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
Label
|
Text
|
||||||
{
|
{
|
||||||
width: parent.width * 0.6
|
width: parent.width * 0.6
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
@ -692,7 +692,7 @@ Column
|
||||||
width: base.width
|
width: base.width
|
||||||
height: UM.Theme.getSize("section").height
|
height: UM.Theme.getSize("section").height
|
||||||
|
|
||||||
Label
|
Text
|
||||||
{
|
{
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
|
|
@ -44,7 +44,7 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Text {
|
||||||
id: statusLabel
|
id: statusLabel
|
||||||
width: parent.width - 2 * UM.Theme.getSize("default_margin").width
|
width: parent.width - 2 * UM.Theme.getSize("default_margin").width
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|
|
@ -332,7 +332,7 @@ Rectangle
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Text {
|
||||||
id: settingsModeLabel
|
id: settingsModeLabel
|
||||||
text: !hideSettings ? catalog.i18nc("@label:listbox", "Print Setup") : catalog.i18nc("@label:listbox","Print Setup disabled\nG-code files cannot be modified");
|
text: !hideSettings ? catalog.i18nc("@label:listbox", "Print Setup") : catalog.i18nc("@label:listbox","Print Setup disabled\nG-code files cannot be modified");
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
|
|
@ -128,7 +128,7 @@ Column
|
||||||
border.color: UM.Theme.getColor("setting_control_border")
|
border.color: UM.Theme.getColor("setting_control_border")
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Text
|
||||||
{
|
{
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.left: swatch.visible ? swatch.right : parent.left
|
anchors.left: swatch.visible ? swatch.right : parent.left
|
||||||
|
@ -174,7 +174,7 @@ Column
|
||||||
rightMargin: UM.Theme.getSize("default_margin").width
|
rightMargin: UM.Theme.getSize("default_margin").width
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Text
|
||||||
{
|
{
|
||||||
id: variantLabel
|
id: variantLabel
|
||||||
text:
|
text:
|
||||||
|
@ -272,7 +272,7 @@ Column
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Label
|
Text
|
||||||
{
|
{
|
||||||
id: globalProfileLabel
|
id: globalProfileLabel
|
||||||
text: catalog.i18nc("@label","Profile:");
|
text: catalog.i18nc("@label","Profile:");
|
||||||
|
|
|
@ -43,7 +43,7 @@ UM.PointingRectangle {
|
||||||
base.opacity = 0;
|
base.opacity = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Text {
|
||||||
id: label;
|
id: label;
|
||||||
anchors {
|
anchors {
|
||||||
top: parent.top;
|
top: parent.top;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue