mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Use short printer family tags
Contributes to CL-1173
This commit is contained in:
parent
3593b7f152
commit
daeb86bdb1
2 changed files with 15 additions and 2 deletions
|
|
@ -97,6 +97,7 @@ Item
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
visible: printJob
|
visible: printJob
|
||||||
|
width: 120 * screenScaleFactor // TODO: Theme!
|
||||||
|
|
||||||
// FIXED-LINE-HEIGHT:
|
// FIXED-LINE-HEIGHT:
|
||||||
height: 18 * screenScaleFactor // TODO: Theme!
|
height: 18 * screenScaleFactor // TODO: Theme!
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,19 @@ import UM 1.2 as UM
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
// The printer name
|
// The printer name
|
||||||
property alias text: printerNameLabel.text;
|
property var text: ""
|
||||||
|
property var tagText: {
|
||||||
|
switch(text) {
|
||||||
|
case "Ultimaker 3":
|
||||||
|
return "UM 3"
|
||||||
|
case "Ultimaker 3 Extended":
|
||||||
|
return "UM 3 EXT"
|
||||||
|
case "Ultimaker S5":
|
||||||
|
return "UM S5"
|
||||||
|
default:
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
implicitHeight: 18 * screenScaleFactor // TODO: Theme!
|
implicitHeight: 18 * screenScaleFactor // TODO: Theme!
|
||||||
implicitWidth: printerNameLabel.contentWidth + 12 // TODO: Theme!
|
implicitWidth: printerNameLabel.contentWidth + 12 // TODO: Theme!
|
||||||
|
|
@ -28,7 +40,7 @@ Item
|
||||||
id: printerNameLabel
|
id: printerNameLabel
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
color: "#535369" // TODO: Theme!
|
color: "#535369" // TODO: Theme!
|
||||||
text: ""
|
text: tagText
|
||||||
font.pointSize: 10
|
font.pointSize: 10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue