mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-24 06:39:38 +08:00
Re-use PrinterTypeLabel component and use abbreviated name
Contributes to issue CURA-5876.
This commit is contained in:
parent
c1bb1a9b98
commit
3ad2e4f62a
@ -46,21 +46,11 @@ Column
|
||||
section.criteria: ViewSection.FullString
|
||||
section.delegate: Item
|
||||
{
|
||||
height: printerTypeLabelBox.height + UM.Theme.getSize("default_margin").height
|
||||
Rectangle
|
||||
height: printerTypeLabel.height + UM.Theme.getSize("default_margin").height
|
||||
Cura.PrinterTypeLabel
|
||||
{
|
||||
id: printerTypeLabelBox
|
||||
color: UM.Theme.getColor("text_detail")
|
||||
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
|
||||
}
|
||||
id: printerTypeLabel
|
||||
text: Cura.MachineManager.getAbbreviatedMachineName(section)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user