mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Re-use PrinterTypeLabel component and use abbreviated name
Contributes to issue CURA-5876.
This commit is contained in:
parent
c1bb1a9b98
commit
3ad2e4f62a
1 changed files with 4 additions and 14 deletions
|
@ -46,21 +46,11 @@ Column
|
||||||
section.criteria: ViewSection.FullString
|
section.criteria: ViewSection.FullString
|
||||||
section.delegate: Item
|
section.delegate: Item
|
||||||
{
|
{
|
||||||
height: printerTypeLabelBox.height + UM.Theme.getSize("default_margin").height
|
height: printerTypeLabel.height + UM.Theme.getSize("default_margin").height
|
||||||
Rectangle
|
Cura.PrinterTypeLabel
|
||||||
{
|
{
|
||||||
id: printerTypeLabelBox
|
id: printerTypeLabel
|
||||||
color: UM.Theme.getColor("text_detail")
|
text: Cura.MachineManager.getAbbreviatedMachineName(section)
|
||||||
width: childrenRect.width
|
|
||||||
height: childrenRect.height
|
|
||||||
|
|
||||||
Label
|
|
||||||
{
|
|
||||||
text: section
|
|
||||||
font: UM.Theme.getFont("small")
|
|
||||||
color: UM.Theme.getColor("text")
|
|
||||||
padding: UM.Theme.getSize("narrow_margin").width
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue