mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06:00
Restyle printer type headers
It's now a grey box with the printer type name inside and some padding and such. Contributes to issue CURA-5876.
This commit is contained in:
parent
7f2f2090da
commit
4be8af7cb2
1 changed files with 17 additions and 5 deletions
|
@ -43,12 +43,24 @@ Column
|
|||
|
||||
section.property: "modelData.printerType"
|
||||
section.criteria: ViewSection.FullString
|
||||
section.delegate: Label
|
||||
section.delegate: Item
|
||||
{
|
||||
text: section
|
||||
font: UM.Theme.getFont("default")
|
||||
color: UM.Theme.getColor("configuration_item_text")
|
||||
bottomPadding: UM.Theme.getSize("default_margin").height
|
||||
height: printerTypeLabelBox.height + UM.Theme.getSize("default_margin").height
|
||||
Rectangle
|
||||
{
|
||||
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("configuration_item_text")
|
||||
padding: UM.Theme.getSize("narrow_margin").width
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
model: (outputDevice != null) ? outputDevice.uniqueConfigurations : []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue