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:
Ghostkeeper 2018-11-27 09:38:32 +01:00
parent 7f2f2090da
commit 4be8af7cb2
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -43,12 +43,24 @@ Column
section.property: "modelData.printerType" section.property: "modelData.printerType"
section.criteria: ViewSection.FullString section.criteria: ViewSection.FullString
section.delegate: Label section.delegate: Item
{ {
text: section height: printerTypeLabelBox.height + UM.Theme.getSize("default_margin").height
font: UM.Theme.getFont("default") Rectangle
color: UM.Theme.getColor("configuration_item_text") {
bottomPadding: UM.Theme.getSize("default_margin").height 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 : [] model: (outputDevice != null) ? outputDevice.uniqueConfigurations : []